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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
This object is used to make Ajax calls.
Select one:
a. Request
b. HttpRequest
c. XMLHttpRequest 
d. XMLRequest
A

c. XMLHttpRequest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Which is not a control of Ajax?
Select one:
a. ScriptManager
b. Timer
c. UpdateProgress
d. ScriptProxy
e. UpdatePanel
A

d. ScriptProxy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
Which is not a jQuery effect?
Select one:
a. spin( ) 
b. fadeOut( )
c. hide( )
d. show( )
A

a. spin( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
Which is not a valid jQuery event method?
Select one:
a. blur( )
b. onload( )
c. change( )
d. error( )
A

b. onload( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

AJAX stands for:

A

Asynchronous JavaScript and XML

17
Q

(jQuery == $) && (jQuery === $)

Select one:
True
False

A

True