header1.html

Wednesday 1 May 2013

AJAX MCQs Quiz-6


AJAX Quiz-6
1.The XMLHttpRequest object is used to exchange data with a server.True or False?
True
False


2. What is the official name of JavaScript?
NetscapeScript
XMLScript
ECMAScript
WebScript


3.Determine whether the following line is correct or not: With AJAX it is possible to work on an image on the client.
no
yes


4.From the provided methods, pick the right one that returns the value of an attribute:
attribute[index].text
attribute()
getAttribute()
All of above


5. Fill in the blank with the proper option from the following: A ________________________ to the JavaScript engine starts all subsequent requests to the server.
XML Document
Function call
HTML page
XHTML Tag


6.In AJAX, the word "Synchronous" describes _______________.
Ability to handle processes independently from other processes
Processes are dependent upon other processes
Processes are not fully dependant on other processes
All the processes can be run independently


7.In Internet Explorer, from the following, which one is the right option to obtain XMLHttpRequest object?
if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest(); }
if (window.ActiveXObject) { httpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
if (window.ActiveXObject) { httpReq = new GetObject("Microsoft XMLHTTPRequest"); }
if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest("IE"); }


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


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


10.What will be the primary step when you have to send a request using JavaScript to a server?
You will call the connect() method of the XMLHttp object
You will call the execute() method of the XMLHttp object
You will call the open() method of the XMLHttp object
None of above

No comments:

Post a Comment