Ajax MCQ Questions & Answers
Ajax MCQs : This section focuses on "Basics" of Ajax. These Multiple Choice Questions (MCQ) should be practiced to improve the Ajax skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. What is true about Ajax?
A. AJAX is a web development technique for creating interactive web applications.
B. Ajax update a web page without reloading the page
C. Ajax request data from a server - after the page has loaded
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
2. AJAX is a programming language.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : B
Explanation: AJAX is not a programming language.
3. In Ajax, Data is stored in?
A. XML
B. XHTML
C. XPHP
D. ASP.NET
View Answer
Ans : A
Explanation: Data is stored in XML format and fetched from the server.
4. Which of the following are the features of an HTTP request?
A. URL being requested
B. Optional request body
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: URL being requested and Optional request body are the features of an HTTP request.
5. Which of the below is a lieral reverse of Ajax?
A. HTTP
B. Comet
C. XML
D. HTML
View Answer
Ans : B
Explanation: Comet is a lieral reverse of Ajax.
6. The keystone of AJAX is the?
A. XML
B. HTTP
C. XMLHttpRequest
D. XMLHttp
View Answer
Ans : C
Explanation: The keystone of AJAX is the XMLHttpRequest object.
7. Which of the following is correct Syntax for creating an XMLHttpRequest object?
A. variable = XMLHttpRequest();
B. variable = new XMLHttpRequest();
C. variable = new.XMLHttpRequest();
D. variable = get.XMLHttpRequest();
View Answer
Ans : B
Explanation: Syntax for creating an XMLHttpRequest object: variable = new XMLHttpRequest();
8. In Ajax, abort() is used for?
A. Returns the current request
B. Returns specific request information
C. Cancels the current request
D. Abort a new XMLHttpRequest object
View Answer
Ans : C
Explanation: abort(): Cancels the current request
9. In status is 200 then, it defines?
A. Not Found
B. Forbidden
C. OK
D. None of the above
View Answer
Ans : C
Explanation: Returns the status-number of a request 200: "OK"
10. The XMLHttpRequest object can be used to exchange data with a server behind the scenes
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: The XMLHttpRequest object can be used to exchange data with a server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
Discussion