Document Object Model And Event Handling - Study Mode

[#76] Which of the following are the features of an HTTP request?
Correct Answer

(D) All of the mentioned

Explanation

Solution: An HTTP request consists of four parts : 1. The HTTP request method or “verb” 2. The URL being requested 3. An optional set of request headers, which may include authentication information 4. An optional request body

[#77] Which of the following is a feature of the HTTP response?
Correct Answer

(A) Mandatory response body

Explanation

Solution: The HTTP response sent by a server has three parts : 1. A numeric and textual status code that indicates the success or failure of the request 2. A set of response headers 3. The response body

[#78] When are the mouse events generated?
Correct Answer

(A) When user clicks the mouse over a document

Explanation

Solution: Mouse events are generated when the user moves or clicks the mouse over a document. These events are triggered on the most deeply nested element that the mouse pointer is over, but they bubble up through the document.

[#79] The properties that specify the position and button state of the mouse are
Correct Answer

(A) clientX and clientY

Explanation

Solution: The clientX and clientY properties specify the position of the mouse in window coordinates.

[#80] Which of the following keys are set to true when the keyboard modifier keys are held down?
Correct Answer

(D) all of the mentioned

Explanation

Solution: The altKey, ctrlKey, metaKey, and shiftKey properties are set to true when the corresponding keyboard modifier keys are held down.