Ajax Multiple Choice Questions
1. What is AJAX ?
A. is a programe
B. is a country name
C. is a football club name
Answer: A
2. What sever support AJAX ?
A. SMTP
B. WWW
C. HTTP
Answer: C
3. AJAX Stands for:
A. Asynchronous Javascript and XML
B. Abstract JSON and XML
C. Another Java Abstraction for X-Windows
D. Another Java and XML Library
Answer: A
4. What makes Ajax unique?
A. It works as a stand-alone Web-development tool.
B. It works the same with all Web browsers.
C. It uses C++ as its programming language.
D. It makes data requests asynchronously.
Answer: D
5. What does the XMLHttpRequest object accomplish in Ajax?
A. It’s the programming language used to develop Ajax applications.
B. It provides a means of exchanging structured data between the Web server and client.
C. It provides the ability to asynchronously exchange data between Web browsers and a Web server.
D. It provides the ability to mark up and style the display of Web-page text.
Answer: C
6. ________ Of the following technologies, which one provides the ability to dynamically interact with Web page layout?
A. JavaScript.
B. XML.
C. Document Object Model.
D. HTML.
Answer: C
7. What is the first step in creating a Joke of the Day application?
A. Create the application’s text file.
B. Write the application’s HTML.
C. Turn the HTML application into an Ajax application.
D. Upload the application to a Web server.
Answer: B
8. Ajax stands for Synchronous JavaScript and XML.
A. True
B. False
Answer: B
9. Ajax is a programming language.
A. True
B. False
Answer: B
10. Regarding the XMLHttpRequest Object, does the order in which one calls the “open” method and assign a function to the “onreadystatechange” event handler matter?
A. Yes
B. No
Answer: B
11. Can a call to the “send” method fire an error (assuming the user’s browser supports the XMLHttpRequest Object and the “send” method )?
A. Yes
B. No
Answer: B
12. ActiveX can be disabled via browser settings.
A. True
B. False
Answer: A
13. The XMLHttpRequest object can be disabled via browser settings.
A. True
B. False
Answer: B
14. Assuming that “xmlhttp” is a user-defined variable that carrys the Ajax requesting object, xmlhttp.status can carry a value of 4 after a successful request.
A. True
B. False
Answer: B
15. The XMLHttpRequest object supports a method called “quit”.
A. True
B. False
Answer: B
16. Assuming that “xmlhttp” is a user-defined variable that carrys the Ajax requesting object, xmlhttp.status can carry a value of 0 after a successful request.
A. True
B. False
Answer: B
17. The XMLHttpRequest object can be used on subdomain1.mysite.com to request a page located at subdomain2.mysite.com according to the specification.
A. True
B. False
Answer: B
18. What combination of technologies gives AJAX its name?
A. ASP and XAML
B. Asynchronous JavaScript and XML
C. Autonomic Computing and DHTML
D. Atlas and XML
Answer: B
19. Which one of these legendary Greek mythical figures or places is the code name for Microsoft’s version of AJAX ?
A. Oracle
B. Atlas
C. Hercules
D. Delphi
Answer: B
20. Which Web browser is the least optimized for Microsoft’s version of AJAX?
A. Firefox
B. Opera
C. Safari
D. Internet Explorer
Answer: C
21. Which one of these technologies is NOT used in AJAX?
A. CSS
B. DOM
C. DHTML
D. Flash
Answer: D
22. AJAX comes in ____.
A. 2003
B. 2005
C. 2004
D. 2006
Answer: B
23. AJAX made popular by
A. Microsoft
B. IBM
C. Sun Microsystem
D. Google
Answer: D
24. AJAX based on
A. JavaScript and XML
B. JavaScript and Java
C. VBScript and XML
D. JavaScript and HTTP requests
Answer: A
25. Using AJAX we can made our web page
a. more interactive and faster
b. easy to connect web page with server
c. more dynamic
Answer: A
26. What does the <noscript> tag do?
A. Enclose text to be displayed by non-JavaScript browsers.
B. Prevents scripts on the page from executing.
C. Describes certain low-budget movies.
D. None of the above
Answer: A
27. Why so JavaScript and Java have similar name?
A. JavaScript is a stripped-down version of Java
B. JavaScript’s syntax is loosely based on Java’s
C. They both originated on the island of Java
D. None of the above
Answer: B
28. When a user views a page containing a JavaScript program, which machine actually executes the script?
A. The User’s machine running a Web browser
B. The Web server
C. A central machine deep within Netscape’s corporate offices
D. None of the above
29. _____ JavaScript is also called client-side JavaScript.
A. Microsoft
B. Navigator
C. LiveWire
D. Native
Answer: B
30 _______ JavaScript is also called server-side JavaScript
A. Microsoft
B. Navigator
C. LiveWire
Answer: C
31.Is it possible to use multiple ScriptManager controls on a Web page?
A. Yes
B. No
Answer: B
32. Is the AjaxControlToolkit.dll file installed in the Global Assembly Cache?
A. Yes
B. No
Answer: B
33.Extensible HTML (XHTML) is a markup language that provides….
A. the mixture expressions of HTML and Javascript.
B. the mixture expressions of HTML and XSL.
C. the mixture expressions of HTML and XML.
D. All of above
Answer: C
34.If you want to create a secure application you should not use AJAX.
A. True
B. False
Answer: A
35. If you want the page to show in a search engine, you must use AJAX.
A. True
B. False
Answer: B
36.Which of following has AJAX is a built-in functionality?
A. .NET Framework 3.5
B. .NET Framework 2.0
C. .NET Framework 3.0
D. .NET Framework 4.0
Answer: D
37._____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
A. Client-side
B. Server-side
C. Local
D. Native
Answer: A
38.Which of the following is not a valid JavaScript variable name?
A. 21abc
B. abc21
C. _abc
D. None of above
Answer: A
39.Which of the following attribute can hold the JavaScript version?
A. SCRIPT
B. LANGUAGE
C. VERSION
D. None of above
Answer: B
40.What is the correct syntax for referring to an external script called ” myScript.js”?
A. <script href=” myScript.js”>
B. <script name=” myScript.js”>
C. <script src=” myScript.js”>
D. None of above
Answer: C
41. WebCrawler does not execute JavaScript code,so you should not use AJAX in commercial sites.
A. True
B. False
Answer: A
42.Choose the server-side JavaScript object?
A. FileUpLoad
B. Function
C. File
D. Date
Answer: C
43.Choose the client-side JavaScript object?
A. Database
B. FileUpLoad
C. File
D. Cursor
Answer: B
44.Is it possible cancel an Asynchronous postback?
A. Yes
B. No
Answer: A
45.which tool is used to debug ASP.NET AJAX applications ?
A. Fiddler
B. Firebug
C. Both
D. None of these
Answer: C
46.Is it possible to use FileUpload control within the update panel?
A. Yes
B. No
Answer: A
47. Is it compulsory to have Script manager on the page when you are using any control of ajax control tool kit?
A. Yes
B. No
C. No need
Answer: A
48.Is there any property names “IsNavigating”?
A. Yes
B. No
Answer: A
49.Uninitialized state of XMLHttpRequest object refers to the state when the object has not been initialized.
A. True
B. False
Answer: A
50.Sent state of XMLHttpRequest object refers to the state when the object has been created; however, the send function has not been invoked.
A. True
B. False
Answer: B
51.The XMLHttpRequest object is used to exchange data with a server.True or False?
A. True
B. False
Answer: A
52. What is the official name of JavaScript?
A. NetscapeScript
B. XMLScript
C. ECMAScript
D. WebScript
Answer: C
53.Determine whether the following line is correct or not: With AJAX it is possible to work on an image on the client.
A. no
B. yes
Answer: B
54.From the provided methods, pick the right one that returns the value of an attribute:
A. attribute[index].text
B. attribute()
C. getAttribute()
D. All of above
Answer: C
55. Fill in the blank with the proper option from the following: A ________________________ to the JavaScript engine starts all subsequent requests to the server.
A. XML Document
B. Function call
C. HTML page
D. XHTML Tag
Answer: B
56.In AJAX, the word “Synchronous” describes _______________.
A. Ability to handle processes independently from other processes
B. Processes are dependent upon other processes
C. Processes are not fully dependant on other processes
D. All the processes can be run independently
Answer: B
57.In Internet Explorer, from the following, which one is the right option to obtain XMLHttpRequest object?
A. if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest(); }
B. if (window.ActiveXObject) { httpReq = new ActiveXObject(“Microsoft.XMLHTTP”); }
C. if (window.ActiveXObject) { httpReq = new GetObject(“Microsoft XMLHTTPRequest”); }
D. if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest(“IE”); }
Answer: A
58.To get the response from a server, responseText or responseXML property of the XMLHttpRequest object is used.
A. no
B. yes
Answer: B
59.The responseText property returns the response as a string format.True or False?
A. True
B. False
Answer: A
60.What will be the primary step when you have to send a request using JavaScript to a server?
A. You will call the connect() method of the XMLHttp object
B. You will call the execute() method of the XMLHttp object
C. You will call the open() method of the XMLHttp object
D. None of above
Answer: C