ExamVeda
Login
Home
41
Which property helps to initiate the HTTP requests?
Discuss
Answer & Solution
Answer: Option B
Solution:
It is possible for JavaScript code to script HTTP, however. HTTP requests are initiated when a script sets the location property of a window object or calls the submit() method of a form object. In both cases, the browser loads a new page.
42
Which method is an alternative of the property location of a window object?
Discuss
Answer & Solution
Answer: Option A
Solution:
It is possible for JavaScript code to script HTTP, however. HTTP requests are initiated when a script sets the location property of a window object or calls the submit() method of a form object. In both cases, the browser loads a new page.
43
Which of the following uses scripted HTTP?
Discuss
Answer & Solution
Answer: Option C
Solution:
The key feature of an Ajax application is that it uses scripted HTTP to initiate data exchange with a web server without causing pages to reload.
44
Which of the below is a lieral reverse of Ajax?
Discuss
Answer & Solution
Answer: Option D
Solution:
Comet is the reverse of Ajax: in Comet, it is the web server that initiates the communication, asynchronously sending messages to the client.
45
The other name for Comet is
Discuss
Answer & Solution
Answer: Option D
Solution:
Other names for Comet include “Server Push”, “Ajax Push”, “HTTP Streaming”.
46
Which is the element that has a src property to initiate HTTP GET request?
Discuss
Answer & Solution
Answer: Option D
Solution:
Both img and script contains the src property thatt can be set to initiate an HTTP GET request.
47
XMLHttpRequesr is a
Discuss
Answer & Solution
Answer: Option C
Solution:
XMLHttpRequest is both an object and a class.
48
Which of the following are the features of an HTTP request?
Discuss
Answer & Solution
Answer: Option D
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
49
Which of the following is a feature of the HTTP response?
Discuss
Answer & Solution
Answer: Option A
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
50
Which is the appropriate code to begin a HTTP GET request?
Discuss
Answer & Solution
Answer: Option C
Solution:
The code that begins a HTTP GET request for the contents of the specified URL is
request.open("GET","data.csv");