AJAX PROGRAMMING USING ASP.NET MCQs

1. What is AJAX
A. is a program
B. is a country name
C. is a football club name
D. None of the above
ANSWER: A


2. What sever support AJAX ?
A. SMTP
B. WWW
C. HTTP
D. All the above
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. 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


9. 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


10. Which Web browser is the least optimized for Microsoft’s version of AJAX?
A. Firefox
B. Opera
C. Safari
D. Internet Explorer
ANSWER: C



11. Which one of these technologies is NOT used in AJAX?

A. CSS

B. DOM
C. DHTML

D. FLASH

ANSWER: D

12. AJAX comes in _____.

A. 2003

B. 2005

C. 2004

D. 2006

ANSWER: B

13. AJAX made popular by______

A. Microsoft

B. IBM

C. Sun Micro system

D. Google

ANSWER: D


14. AJAX based on ______ .

A. JavaScript and XML

B. JavaScript and Java
C. VBScript and XML

D. JavaScript and HTTP requests

ANSWER: A


15. Using AJAX we can made our web page.

A. more interactive and faster
B. easy to connect web page with server

C. more dynamic

D. None of the above ANSWER: A


16. 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


17. 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


18. 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

ANSWER: A


19. _____ JavaScript is also called client-side JavaScript.

A. Microsoft
B. Navigator
C. LiveWire

D. Native ANSWER: B


20. _______ JavaScript is also called server-side JavaScript

A. Microsoft
B. Navigator

C. LiveWire

D. None of the above

ANSWER: C



21. What does the XMLHttpRequest object accomplish in Ajax?
A. Its 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


22. ________ 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


23. The return type of getElementsByClassName() is

A. DOM

B. Document

C. Node
D. NodeList

ANSWER: D


24. 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


25. Which one of these legendary Greek mythical figures or places is the code name for Microsofts version of AJAX ?

A. Oracle B. Atlas
C. Hercules

D. Delphi

ANSWER: B


26. Which Web browser is the least optimized for Microsoft’s version of AJAX?

A. Firefox
B. Opera
C. Safari

D. Internet Explorer

ANSWER: C


27. Which one of these technologies is NOT used in AJAX?

A. CSS

B. DOM

 

C. DHTML

D. Flash

ANSWER: D


28. AJAX comes in ____.

A. 2003

B. 2005

C. 2004

D. 2006

ANSWER: B


29. AJAX made popular by

A. Microsoft
B. IBM
C. Sun Microsystem

D. Google ANSWER: D


30. AJAX based on_____________

A. JavaScript and XML
B. JavaScript and Java
C. VBScript and XML

D. JavaScript and HTTP requests

ANSWER: A



31. Using AJAX we can made our web page ______________

A. more interactive and faster
B. easy to connect web page with server
C. more dynamic

D. None of the above

ANSWER: A


32. A Master Page contains a ScriptManager control and a user wants the AJAX functionality on content page then which control is necessary on content page?

A. AsyncPostBackTrigger

B. ScriptManager
C. ScriptManager Proxy

D. None of the above.

ANSWER: C


33. What are the advantages of AJAX?
A. AJAX is a platform-independent technology

B. It provides partial-page updates
C. Improved performance
D. All of the above

ANSWER: D


34. The UpdatePanel supports two types of triggers: AsyncPostBackTrigger and PostBackTrigger. Choose the correct option regarding the working of these triggers.

A. AsyncPostBackTrigger causes an asynchronous (Ajax) postback.

B. PostBackTrigger causes a normal entire-page postback.

C. AsyncPostBackTrigger causes a normal entire-page postback.

D. Options A and B are Correct.

ANSWER: D


35. Which control is required of every AJAX page to manage the JavaScript files sent to the client and the communication between client and server?

A. UpdatePanel
B. ScriptManager
C. AsyncPostBackTrigger

D. None of the above.

ANSWER: B


36. Which interface you will use wrap an AJAX client control into a custom server control?

A. IScriptManager
B. IScriptControl
C. IScriptAJAX

D. None of the above

ANSWER: A


37. Which control can be used to update only the portion of the page?

A. UpdatePanel
B. ScriptManager
C. AsyncPostBackTrigger

D. None of the above.

ANSWER: A


38. How many ‘ScriptManager’ control can be added on a ASP.NET web page?

A. Only One
B. More than One
C. Only Two

D. None of the above.

ANSWER: A


39. Which method is used to dynamically register client script from code?

A. Page.ClientScript.RegisterClientScriptBlock
B. RegisterScript
C. Page.ClientScript

D. None of the above

ANSWER: A


40. Which control is required for every page that have AJAX Extensions for ASP.NET?

A. UpdatePanel
B. ScriptManager
C. ContentPanel

D. None of the above

ANSWER: B



41. Which of the following is true ?

1. AJAX is a platform-independent technology

2. AJAX can work with web application

3. AJAX can only work with ASP.NET

4. AJAX is a platform-dependent technology

A. 1, 2 B. 1,2,3

C. 1,3,4

D. None of the above

ANSWER: A


42. Which property and method of the Page object do you use to register client script dynamically from code?

A. ScriptManager control is used to dynamically register client script from code.

B. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.

C. ScriptManagerProxy control is used to dynamically register client script from code.

D. None of the above.

ANSWER: B


43. What property and method of the Page object do you use to register client script dynamically from code?

A. ScriptManager control is used to dynamically register client script from code.

B. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.

C. ScriptManagerProxy control is used to dynamically register client script from code.

D. None of the above.

ANSWER: C


44. The XMLHttpRequest object is used to exchange data with a server.True or False?

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: A


45. What is the official name of JavaScript?

A. NetscapeScript
B. XMLScript
C. ECMAScript

D. WebScript

ANSWER: C


46. 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
C. None of the above

D. Not Correct

ANSWER: B


47. 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


48. 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


49. 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


50. In Internet Explorer, from the following, which one is the right option to obtain an 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



51. To get the response from a server, responseText or responseXML property of the XMLHttpRequest object is used.

A. No
B. yes
C. None of the above

D. Not Correct

ANSWER: B


52. 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 connect() method of the XMLHttp object
C. You will call the open() method of the XMLHttp object

D. None of above

ANSWER: C


53. The responseText property returns the response as a string format.True or False?

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: A


54. What does the Chorus believe has afflicted Ajax?

A. Madness.
B. Jealousy.
C.  Envy.

D. Fear.

ANSWER: A


55. Ajax stands for Synchronous JavaScript and XML.

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: B


56. Ajax is a programming language.

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: B


57. 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
C. None of the above

D. Not Correct

ANSWER: B


58. Can a call to the “send” method fire an error (assuming the user’s browser supports the XMLHttpRequest Object and the “send” method )?

A. No
B. Yes
C. None of the above

D. Not Correct

ANSWER: A


59. ActiveX can be disabled via browser settings.

A. True

B. False
C. None of the above D. Not Correct

ANSWER: A

60. The XMLHttpRequest object can be disabled via browser settings.

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: B



61. 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
C. None of the above

D. Not Correct

ANSWER: B


62. The XMLHttpRequest object supports a method called “quit”.

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: B


63. 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
C. None of the above

D. Not Correct

ANSWER: B


64. 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
C. Not Correct
D. None of the above

ANSWER: B


65. 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
C. Not Correct
D. None of the above

ANSWER: B


66. Can a call to the send method fire an error.

A. Yes

B. No
C. Not Correct
D. None of the above

ANSWER: B


67. The XMLHttpRequest object can be disabled via browser settings.

A. True

B. False
C. None of the above

D. Not Correct

ANSWER: B


68. 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
C. None of the above

D. Not Correct ANSWER: B

69. The XMLHttpRequest object supports a method called quit.

A. False

B. True
C. Not Correct
D. None of the above

ANSWER: A


70. 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
C. Not Correct
D. None of the above

ANSWER: B



71. What does XML stand for?
A. eXtra Modern Link
B. eXtensible Markup Language

C. Example Markup Language

D. X-Markup Language

ANSWER: B


72. Which statement is true?
A. All XML elements must have a closing tag

B. All XML elements must be lower case
C. All XML documents must have a DTD
D. All the statements are true

ANSWER: B


73. What is the correct syntax of the declaration which defines the XML version?:

A. <xml version=”A.0″ />
B. <?xml version=”A.0″?>
C. <?xml version=”A.0″ />

D. None of the above

ANSWER: B


74. Which of the following programs support XML or XML applications?:

A. Internet Explorer 5.5
B. Netscape D.7
C. RealPlayer.

D. both A and B

ANSWER: D


75. Well formed XML document means
A. it contains a root element
B. it contain an element
C. it contains one or more elements
D. must contain one or more elements and root element must contain all other elements

ANSWER: D


76. Comment in XML document is given by

A. <?– –>
B. <!– –!>
C. <!– –>

D. </– — >

ANSWER: C


77. When processing an output XML, new line symbols
A. Are copied into output as is, i.e. CR+LF for Windows, CR for Macintosh, LF for Unix.

B. Are converted to single LF symbol
C. Are converted to single CR symbol
D. Are discarded

ANSWER: B


78. Which of the following strings are a correct XML name?

A. xmlExtension
B. xslNewElement
C. XMLElement#123

D. All

ANSWER: B


79. What are the predefined attributes

A. xml:lang
B. xml:space
C. both

D. none.

ANSWER: C


80. XML uses the features of
A. HTML

B. XHTML C. VML
D. SGML

ANSWER: D



81. Parameter entities can appear in A. xml file
B. dtd file
C. xsl file

D. Both 1 and 2 ANSWER: B


82. The XML DOM object is A. Entity

B. Entity Reference
C. Comment Reference
D. Comment Data

ANSWER: B


83. The XML DOM object is A. Entity

B. Entity Reference
C. Comment Reference

D. Comment Data

ANSWER: B


84. Whats so great about XML? A. Easy data exchange
B. High speed on network
C. High speed on network

D. Both A. & B. ANSWER: D


85. For XML document to be valid
A. document need to be well formed also
B. document need not to be well formed
C. document need to be well formed & valid
D. document validity has no relationship with well formedness

ANSWER: C


86. The attribute used to define a new namespace is A. XMLNS
B. XmlNameSpace
C. Xmlns

D. XmlNs ANSWER: C


87. Which of the below is a lieral reverse of Ajax?

A. HTTP

B. HTML

C. XML

D. Comet

ANSWER: D


88. Which of the following uses scripted HTTP?

A. XML

B. HTML
C. Ajax
D. All of the above

ANSWER: C


89. Which method is an alternative of the property location of a window object?

A. submit()
B. locate()
C. load()

D. None of the above

ANSWER: A


90. Which property helps to initiate the HTTP requests?
A. request

B. location
C. send
D. None of the mentioned

ANSWER: B



91. The other name for Comet is A. Server Push
B. Ajax Push
C. HTTP Streaming

D. All of the above

ANSWER: D


92. Which is the element that has a src property to initiate HTTP GET request? A. img

B. iframe
C. script
D. Both a and c

ANSWER: D


93. XMLHttpRequest is a

A. Object

B. Class
C. Both a and b
D. None of the above

ANSWER: C


94. Which of the following are the features of an HTTP request?

A. URL being requested
B. Optional request body
C. Optional set of request headers

D. All of the above

ANSWER: D


95. Which of the following is a feature of the HTTP response?

A. Mandatory response body
B. Optional response body
C. URL being released

D. Optional set of response headers

ANSWER: A


96. The CSS links properties are
A. :link, :visited, :hover, :active
B. :link, :visit, :hover, :active
C. :link, :visited, :over, :active
D. :link, :visited, :hover, :active, :inactive

ANSWER: A


97. In CSS tables, the possible values for the caption-side property can have the following values.

A. top, bottom, left or right
B. top, bottom, center, left or right
C. top or bottom

D. left or right

ANSWER: A


98. The different ways to associate styles with a HTML document is/are

A. Embedded CSS with <style> element
B. Inline CSS with style attribute.
C. External CSS with <link> element.

D. All of the above

ANSWER: D


99. In a table, the CSS __________ property can be used to specify the amount of space between the borders of each cell.

A. border-padding B. padding
C. spacing
D. border-spacing

ANSWER: D


100. In the head section of each (X)HTML page in which you wish to use an external style sheet, you must include an appropriate ______ element.

A. <link>

B. <src>

C. <style>

D. <css>

ANSWER: A



 

error: Content is protected !!