HTML and CSS Reference
In-Depth Information
Correct answer: D
3.
Incorrect: Credentials aren't passed with the open method.
A.
Incorrect: Credentials aren't passed with the request method.
B.
Incorrect: Ready state is a property that indicates the current state of the
connection.
C.
Correct: Credentials are passed only if the server requests them with a return
code 401.
D.
Objective 3.3: Thought experiment
The task assigned here to build a scroll across the top of the page is seen in many websites
today. A stock price ticker is a typical application of this. This solution would potentially incor-
porate different technologies. At its core, you can implement the XMLHttpRequest object to
make a call to an API that provides stock data. When the data is retrieved, you can display in
the browser. Because the solution calls for not posting the entire page, you would need to use
dynamic DOM manipulation to display the results and have them scroll across the top of the
page. Because the quotes must be updated regularly, you would likely include the use of a
timer to poll for the results at a regular interval.
Objective 3.3: Review
Correct answer: D
1.
Incorrect: A JSON string isn't just a comma-separated list.
A.
Incorrect: A JSON string isn't a list delimited by semi-colons.
B.
Incorrect: A JSON string isn't a list delimited by semi-colons.
C.
Correct: A JSON string is a series of name/value pairs where the name of the
property is followed by a colon and a quoted string. Multiple name value pairs are
comma separated.
D.
Correct answer: C
2.
Incorrect: Response doesn't provide any direct information.
A.
Incorrect: responseBody provides the result in binary format.
B.
Correct: responseText provides the result as text that's human readable.
C.
Incorrect: responseXML isn't a valid property.
D.
Search WWH ::




Custom Search