AJAX Flashcards
1
Q
In Ajax, which is not a trigger present in update panel? Select one: a. PostBackTrigger b. SyncronousPostBackTrigger c. All are valid d. AsyncPostBackTrigger
A
b. SyncronousPostBackTrigger
2
Q
In AJAX, which line will retrieve the XML DOM returned by the servlet? Select one: a. var xml = xmlHttpRequest.getResponse; b. var xml = ajaxReq.response; c. var dom = req.XML; d. var dom = xmlHttpRequest.responseXML;
A
d. var dom = xmlHttpRequest.responseXML;
3
Q
This function of the XMLHttpRequest object sends the request to the server? Select one: a. run b. None of these. c. submit d. send
A
d. send
4
Q
This object is used to make Ajax calls. Select one: a. Request b. HttpRequest c. XMLHttpRequest d. XMLRequest
A
c. XMLHttpRequest
5
Q
This property of the XMLHttpRequest object will contain the event handler to be called when the readystatechange event is fired. Select one: a. onstatuschange b. None of these. c. onreadystate d. onreadystatechange
A
d. onreadystatechange
6
Q
This property of the XMLHttpRequest object will have a value of 200 when the server sends back an HTTP response with an OK status code. Select one: a. readyState b. None of these. c. onreadystatechange d. status
A
d. status
7
Q
This property of the XMLHttpRequest object will have a value of 4 when the server completes the requested operation. Select one: a. readyState b. None of these. c. onreadystatechange d. status
A
a. readyState
8
Q
What is JSON in Ajax?
Select one:
a. Server-side component for handling Ajax requests
b. An Ajax event controller
c. JavaScript library for building Ajax applications
d. Data interchange format in JavaScript
A
d. Data interchange format in JavaScript
9
Q
Which is not a control of Ajax? Select one: a. ScriptManager b. Timer c. UpdateProgress d. ScriptProxy e. UpdatePanel
A
d. ScriptProxy
10
Q
Which is not a parameter used for jQuery.ajax method? Select one: a. Cache b. XML c. Data d. URL e. Type
A
b. XML
11
Q
Which is not a jQuery effect? Select one: a. spin( ) b. fadeOut( ) c. hide( ) d. show( )
A
a. spin( )
12
Q
Which CSS selector is not valid in jQuery? Select one: a. $( "#myDiv" ) b. $( "ul li:nth-child(2)" ) c. $( "*" ) d. All are valid. e. $( "li" )
A
d. All are valid.
13
Q
Which is not a valid jQuery event method? Select one: a. blur( ) b. onload( ) c. change( ) d. error( )
A
b. onload( )
14
Q
Which of these is not among the parameters used in the XMLHttpRequest open function? Select one: a. URL b. http method c. form data d. async on/off
A
b. http method
15
Q
Which of the following values are supported by JSON. Select one or more: a. 05 b. NaN c. null d. undefined e. false
A
c. null
e. false