AJAX/AJAX Mcq Question Set 2 Sample Test,Sample questions

Question:
 How to convert the below statement to the synchronous request?
xhttp.open("GET", "info.php", true);

1.Convert the third parameter to "false"

2.Convert the third parameter to "sync"

3.Convert the first parameter to "sync_GET"

4.All of the above


Question:
 If the value of status property is 404, what does it mean?

1.OK

2.Forbidden

3.Method Not Allowed

4.Page not found


Question:
 Which are the two properties to hold the status of XMLHttpRequest?

1.status and statusText

2.statusNum and statusText

3.statusId and statusText

4.none of the above


Question:
"GET is simpler and faster than POST." – Is this statement true?

1.Yes

2.no

3.all of the above

4.None of the mentioned


Question:
The ______ function is called every time the readyState changes.

1.getreadystatechange

2.onreadystatechange

3.onsetreadystatechange

4.toreadystatechange


Question:
Which is the correct syntax to add HTTP headers to the request?

1.setRequestHeader(value, header)

2.setAllRequestHeader(value, header)

3.setRequestHeader(header, value)

4.setAllRequestHeader(header, value)


Question:
Which property returns the response data as XML data?

1.getXML

2.getResponseXML

3.responseXML

4.responseAllXML


Question:
Which property returns the status-number of a request?

1.statusText

2.statusXML

3.status-number

4.status


Question:
Which property returns the status-text?

1.statusText

2.statusXML

3.status-number

4.status


More MCQS

  1. AJAX Mcq Question Set 1
  2. AJAX Mcq Question Set 2
  3. Ajax Multiple Choice Question
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!