header1.html

Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

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

Thursday, 18 April 2013

AJAX Quiz-5


AJAX Quiz-5
1. WebCrawler does not execute JavaScript code,so you should not use AJAX in commercial sites.
True
False


2.Choose the server-side JavaScript object?
FileUpLoad
Function
File
Date


3.Choose the client-side JavaScript object?
Database
FileUpLoad
File
Cursor


4.Is it possible cancel an Asynchronous postback?
Yes
No


5.which tool is used to debug ASP.NET AJAX applications ?
Fiddler
Firebug
Both
None of these


6.Is it possible to use FileUpload control within the update panel?
Yes
No


7.Is it compulsory to have Script manager on the page when you are using any control of ajax control tool kit?
Yes
No
No need


8.Is there any property names “IsNavigating”?
Yes
No


9.Uninitialized state of XMLHttpRequest object refers to the state when the object has not been initialized.
True
False


10.Sent state of XMLHttpRequest object refers to the state when the object has been created; however, the send function has not been invoked.
True
False

AJAX Quiz-4


AJAX Quiz-4
1.__________ JavaScript is also called server-side JavaScript.
Microsoft
LiveWire
Navigator
Native


2. Is the AjaxControlToolkit.dll file installed in the Global Assembly Cache?
Yes
No


3.Extensible HTML (XHTML) is a markup language that provides....
the mixture expressions of HTML and Javascript.
the mixture expressions of HTML and XSL.
the mixture expressions of HTML and XML.
All of above


4.If you want to create a secure application you should not use AJAX.
True
False


5. If you want the page to show in a search engine, you must use AJAX.
True
False


6.Which of following has AJAX is a built-in functionality?
.NET Framework 3.5
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 4.0


7._____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
Client-side
Server-side
Local
Native


8.Which of the following is not a valid JavaScript variable name?
21abc
abc21
_abc
None of above


9.Which of the following attribute can hold the JavaScript version?
SCRIPT
LANGUAGE
VERSION
None of above


10.What is the correct syntax for referring to an external script called " myScript.js"?
<script href=" myScript.js">
<script name=" myScript.js">
<script src=" myScript.js">
None of above

AJAX Quiz-3


AJAX Quiz-3
1.The.....property holds the status of the XMLHttpRequest.
onreadystatechange
readyState
status
done


2. .....stores a function (or the name of a function) to be called automatically each time the readyState property changes.
onreadystatechange
readyState
status
All of above


3.A callback function is a function passed as a parameter to another function.True or False?
True
False


4.AJAX can not be used for interactive communication with an XML file.
True
False


5.AJAX is not a new programming language, but a new way to use existing standards.
True
False


6.JSON is not a safe data interchange format in JavaScript, which is also difficult to understand.
True
False


7. (a)It is difficult to bookmark a particular state of the application.(b)Response time may be slow because different controls of a page are loaded at different time. What is true about AJAX?
a
b
a & b
both are false


8.Can we call server-side code from JavaScript?
Yes
No
Can't say


9.Can we nest the UpdatePanel controls?
Yes
No


10.Is it possible to use multiple ScriptManager controls on a Web page?
Yes
No

AJAX Quiz-2


AJAX Quiz-2
1.Ajax uses XML for coding and transferring formatted information between server and client.True or False?
True
False


2. Sending a Ajax request to web server
Push & pop
Open & send
Demand & get
Req & receive


3.Control that group of server control and monitored their post back and rendering process
UpdateControl
UpdatePanel
UpdateControlPanel
Iframe


4.__________ajax control enables you to place scripts and service into your content page.
ScriptManager
Panel
ScriptManagerProxy
Timer


5. In ajax how the request will be processed?
HttpXmlRequest
Httprequest
XMLHttpRequest
None of these


6. _____________ control includes downloading Microsoft Ajax Library scripts to the browser and coordinating partial-page updates that are enabled by using updatepanel controls.
ScriptManager
UpdatePanel
Timer
UpdateProgress


7.The XMLHttpRequest object can be used on subdomain1.mysite.com to request a page located at subdomain2.mysite.com according to the specification.
True
False


8.JavaScript/DOM is used to display/interact with the information.True or False?
True
False


9.setRequestHeader()method adds HTTP headers to the request.
True
False


10.If the response from the server is not XML, use the.....property.
responseXML
responseText
innerHTML
None of above

Saturday, 6 April 2013

AJAX Quiz-1


AJAX Quiz-1
1.What does the XMLHttpRequest object accomplish in Ajax?
It's the programming language used to develop Ajax applications.
It provides a means of exchanging structured data between the Web server and client.
It provides the ability to asynchronously exchange data between Web browsers and a Web server.
It provides the ability to mark up and style the display of Web-page text.


2. What sever support AJAX ?
SMTP
WWW
HTTP
None of above


3.ActiveX can be disabled via browser settings?
True
False


4.What does the <noscript> tag do?
Enclose text to be displayed by non-JavaScript browsers.
Prevents scripts on the page from executing.
Describes certain low-budget movies.
None of above


5. AJAX comes in _____.
2003
2005
2004
2006


6.Can AJAX technology work on web servers other than IIS?
Yes
No


7.Can Ajax be implemented in browsers that do not support the XmlHttpRequest object?
Yes
No


8.Can we override the EnablePartialRendering property of the ScriptManager class?
Yes
No


9.Using AJAX we can made our web page.
easy to connect web page with server
more interactive and faster
more dynamic
None of these


10._____ JavaScript is also called client-side JavaScript.
Microsoft
Navigator
LiveWire
Native