Exam 9: Managing State Information and Security

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

You create hidden form fields with the ____ element.

Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
Verified

C

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

Free
(Multiple Choice)
4.7/5
(36)
Correct Answer:
Verified

A

To extract the contents of a query string except for the question  mark, you use the __________ method.

Free
(Short Answer)
4.7/5
(39)
Correct Answer:
Verified

substring()

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

(Multiple Choice)
4.7/5
(36)

Describe the advantages and disadvantages of the original stateless design of the web.

(Essay)
4.8/5
(39)

Describe how to extract all the contents of a query string except for the question mark.

(Essay)
5.0/5
(40)

One way to preserve information following a user's visit to a web page is to append a query string to the end of a URL.

(True/False)
4.9/5
(44)

Explain how to delete a cookie.

(Essay)
4.9/5
(42)

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

(Multiple Choice)
4.8/5
(25)

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

(Multiple Choice)
4.9/5
(39)

__________ is a newer specification than cookies for storing state information on a user's computer.

(Short Answer)
4.8/5
(43)

Provide one reason for using the Web Storage API today, and one reason not to use it.

(Essay)
4.9/5
(42)

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

(Multiple Choice)
4.7/5
(40)

What are the security areas of most concern to JavaScript programmers?

(Essay)
4.9/5
(45)
Match each statement below with correct item:
Allows cookies to be shared across a server
encodeURIComponent()
The only required parameter of the cookie property
secure coding
Converts special characters in the individual parts of a URI to their corresponding hexadecimal ASCII value, preceded by a percent sign
query string
Correct Answer:
Verified
Premises:
Responses:
Allows cookies to be shared across a server
encodeURIComponent()
The only required parameter of the cookie property
secure coding
Converts special characters in the individual parts of a URI to their corresponding hexadecimal ASCII value, preceded by a percent sign
query string
Restricts how JavaScript code in one window or frame accesses a web page in another window or frame on a client computer
same origin policy
Encrypts data and transfers it across a secure connection
toUTCString()
Converts the Date object to a string, formatting it in Coordinated Universal Time
hidden form field
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
localStorage
Also known as defensive coding
name attribute
Consists of a single text string containing one or more pieces of information
path attribute
Storage that remains until you run code to delete it
SSL
(Matching)
4.9/5
(39)

What limitations on the use of cookies are described in the cookie specification?

(Essay)
4.8/5
(40)

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

(Multiple Choice)
4.8/5
(48)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
5.0/5
(36)
Showing 1 - 20 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)