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

Posted Date:-2022-02-04 09:51:15


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

Posted Date:-2022-02-04 09:53:02


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

Posted Date:-2022-02-04 09:52:30


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

Posted Date:-2022-02-04 09:50:15


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

1.getreadystatechange

2.onreadystatechange

3.onsetreadystatechange

4.toreadystatechange

Posted Date:-2022-02-04 09:53:27


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)

Posted Date:-2022-02-04 09:50:39


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

1.getXML

2.getResponseXML

3.responseXML

4.responseAllXML

Posted Date:-2022-02-04 09:49:17


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

1.statusText

2.statusXML

3.status-number

4.status

Posted Date:-2022-02-04 09:49:37


Question:
Which property returns the status-text?

1.statusText

2.statusXML

3.status-number

4.status

Posted Date:-2022-02-04 09:49:59


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!