Chapter 9 Flashcards

1
Q

____ cookies remain available only for the current browser session.

A

Temporary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The cookie property is created with a required ____ attribute.

A

name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You can use a(n) ____ to pass information, such as search criteria, from one web page to another.

A

query string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The ____ property of the Document object changes the origin of a document to its root domain name.

A

domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

____ refers to the writing of code in such a way that minimizes any intentional or accidental security issues.

A

Secure coding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To delete a cookie, you change the ____ property.

A

expires

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You use the ____ property of the Document object to create cookies in name-value pairs.

A

cookie

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The ____ property of the Location object contains a URL’s query or search parameters.

A

search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You create hidden form fields with the ____ element.

A

input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The most widespread way on the web today of storing state information on a user’s computer is using ____.

A

cookies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You can use special characters in your cookies if you use ____.

A

encoding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The ____ attribute determines the availability of a cookie to other web pages on a server.

A

path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The ____ attribute indicates that a cookie can only be transmitted across a secure Internet connection using HTTPS or another security protocol.

A

secure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The ____ attribute of the cookie property determines how long a cookie can remain on a client system before it is deleted.

A

expires

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The built-in ____ function is used in JavaScript for encoding the individual parts of a URI.

A

encodeURIComponent()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To create a query string, you add a ____ immediately after a URL, followed by the query string.

A

?

17
Q

HTTP was originally designed to be ____, which means that web browsers stored no persistent data about a visit to a website.

A

stateless

18
Q

The ____ attribute is used for sharing cookies across multiple servers in the same domain.

A

domain

19
Q

____ cookies remain available beyond the current browser session and are stored in a text file on a client computer.

A

Persistent

20
Q

You separate individual name-value pairs within a query string using ____.

A

&

21
Q

Also known as defensive coding

A

secure coding

22
Q

Converts the Date object to a string, formatting it in Coordinated Universal Time

A

toUTCString

23
Q

Temporarily stores data that needs to be sent to a server along with the rest of a form, but that a user does not need to see

A

hidden form field

24
Q

Encrypts data and transfers it across a secure connection

A

SSL

25
Q

The only required parameter of the cookie property

A

name attribute

26
Q

Allows cookies to be shared across a server

A

path attribute

27
Q

Consists of a single text string containing one or more pieces of information

A

query string

28
Q

Converts special characters in the individual parts of a URI to their corresponding hexadecimal ASCII value, preceded by a percent sign

A

encodeURIComponent()

29
Q

Restricts how JavaScript code in one window or frame accesses a web page in another window or frame on a client computer

A

same origin policy

30
Q

​Storage that remains until you run code to delete it

A

localStorage