Olete.in
Articles
Mock Tests
๐งช AJAX MCQ Quiz Hub
AJAX Mcq Question Set 2
Choose a topic to test your knowledge and improve your AJAX skills
1. Which property returns the response data as XML data?
getXML
getResponseXML
responseXML
responseAllXML
2. Which property returns the status-number of a request?
statusText
statusXML
status-number
status
3. Which property returns the status-text?
statusText
statusXML
status-number
status
4. "GET is simpler and faster than POST." โ Is this statement true?
Yes
no
all of the above
None of the mentioned
5. Which is the correct syntax to add HTTP headers to the request?
setRequestHeader(value, header)
setAllRequestHeader(value, header)
setRequestHeader(header, value)
setAllRequestHeader(header, value)
6. How to convert the below statement to the synchronous request? xhttp.open("GET", "info.php", true);
Convert the third parameter to "false"
Convert the third parameter to "sync"
Convert the first parameter to "sync_GET"
All of the above
7. Which are the two properties to hold the status of XMLHttpRequest?
status and statusText
statusNum and statusText
statusId and statusText
none of the above
8. If the value of status property is 404, what does it mean?
OK
Forbidden
Method Not Allowed
Page not found
9. The ______ function is called every time the readyState changes.
getreadystatechange
onreadystatechange
onsetreadystatechange
toreadystatechange
Submit