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 stands for ?
A. Asynchronous JavaScript and XML
B. Asynchronous Java and XML
C. Asynchronous JavaScript and XHTML
D. Applications JavaScript and XML
View Answer
Ans : A
Explanation: AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script.
3. 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.
4. AJAX is the most viable __________ technology.
A. CIA
B. FIA
C. RIA
D. ZIA
View Answer
Ans : C
Explanation: AJAX is the most viable Rich Internet Application (RIA) technology
5. 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.
6. What are the advantages of Ajax?
A. Bandwidth utilization
B. More interactive
C. Speeder retrieval of data
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are are the advantages of Ajax.
7. 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.
8. AJAX is a web browser technology independent of web server software.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: AJAX is a web browser technology independent of web server software.
9. 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.
10. What are the controls of Ajax?
A. ScriptManager
B. ScriptManagerProxy
C. UpdatePanel
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the controls of Ajax.
11. 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.
12. It has been available ever since?
A. Internet Explorer 5.5
B. Internet Explorer 4.0
C. Internet Explorer 4.5
D. Internet Explorer 5.1
View Answer
Ans : A
Explanation: It has been available ever since Internet Explorer 5.5 was released in July 2000, but was not fully discovered until AJAX and Web 2.0 in 2005 became popular.
13. 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();
14. XMLHttpRequest (XHR) is an API that can be used by ?
A. Javascript
B. JScript
C. VBScript
D. All of the above
View Answer
Ans : D
Explanation: XMLHttpRequest (XHR) is an API that can be used by JavaScript, JScript, VBScript, and other web browser scripting languages to transfer and manipulate XML data to and from a webserver using HTTP, establishing an independent connection channel between a webpage's Client-Side and Server-Side.
15. 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
16. In readyState, 1 defines?
A. request not initialized
B. server connection established
C. processing request
D. request finished and response is ready
View Answer
Ans : B
Explanation: 1: server connection established
17. 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"
18. In Ajax, send(string) method defines?
A. Returns specific header information
B. Used for GET requests
C. Adds a label/value pair to the header to be sent
D. Used for POST requests
View Answer
Ans : D
Explanation: send(string) : Sends the request to the server.Used for POST requests
19. 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.
20. The data returned from XMLHttpRequest calls will often be provided by back-end databases.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: The data returned from XMLHttpRequest calls will often be provided by back-end databases.
Discussion