Top Ad unit 728 × 90

Breaking News

recent

UpWork (oDesk) & Elance AJAX Test Question & Answers

UpWork (oDesk) & Elance AJAX Test Question & Answers is really very important to pass UpWork & Elance test. You will get top score at this skill test exam. If you found any problem or wrong answer please inform me via contact or comments. We will try to solve it in short. This test is very valueable to acquire knowledge of this skill. Lets Start test.


Ques : Which of the following is/are true regarding AJAX?
Ans  : It's an engine developed by Microsoft to load web pages faster +  It's merely a concept with many implementation methods (XMLHttpRequest, iFrames...) + It's a good way to reduce network traffic, if used correctly

Ques : Which of the following browsers provide XMLHttpRequest property?
Ans  :Internet Explorer 7 + Firefox 2.0 + Safari 3.0

Ques : What is true regarding XMLHttpRequest.abort()?
Ans  : It can only be used with async requests + It will remove the onreadystatechange event handler

Ques : document.write ("Hello");  will pop a dialog box with "Hello" in it.
Ans  :  false

Ques : Is it possible to make a page "reload-safe" when using AJAX?
Ans  :  yes, if each AJAX request modifies the server side context, which would render a page similar to the actual JS modified page, if reloaded.

Ques : In the following list, which ones are used to fetch the result data of an XMLHttpRequest?
Ans  : responseXML

Ques : Is it always possible to make requests to multiple websites with different domain names from an AJAX client script?
Ans  :yes

Ques : Is the loading of an AJAX enabled web page any different from the loading of a normal page?
Ans  :  Yes

Ques : Can AJAX be used with HTTPS (SSL)?
Ans  : yes

Ques : Which of the following list is/are true regarding AJAX?
Ans  : It can be used to update parts of a webpage without reloading it

Ques : Can WebDav methods like PROPFIND be used with XMLHttpRequest.open()?
Ans  : Yes

Ques : Can AJAX be used with offline pages?
Ans  :  yes

Ques : Can a client AJAX application be used to fetch and execute some JavaScript code?
Ans  : no

Ques :  What language does AJAX use on the client side?
Ans  :  JavaScript

Ques : Can AJAX be used with PHP?
Ans  : yes

Ques : What is the correct way to execute the function "calc()" when an XMLHttpRequest is loaded?
Ans  : myRequest.onreadystatechange = calc;

Ques : Can an HTML form be sent with AJAX?
Ans  : yes

Ques : Can you call responseBody or responseText to get a partial result when the readyState of an XMLHttpRequest is 3(receiving)?
Ans  : No

Ques : Can an AJAX application communicate with other applications on the client computer?
Ans  : No

Ques : Which of the following describes the term 'Asynchronous' correctly?
Ans  : Ability to handle processes independently from other processes

Ques : What is the common way to make a request with XMLHttpRequest?
Ans  : myReq.send(null);

Ques : What is the correct way to have the function checkState called after 10 seconds?
Ans  :  window.setTimeout(checkState, 10000);

Ques : How can you create an XMLHttpRequest under Internet Explorer 6?
Ans  : var oReq = new ActiveXObject ("MSXML2.XMLHTTP.3.0");

Ques : The X in AJAX refers to XML, but is it possible to make a request for plain text data by using AJAX?
Ans  : yes

Ques : Is it possible to create and manipulate an image on the client with AJAX?
Ans  : yes

Ques : Is it possible to make some system calls on the client with AJAX?
Ans  : No

Ques : What is the third (async) parameter of the XMLHttpRequest open method?
Ans  :  If true, callbacks are executed

Ques : Which HTTP server does AJAX require?
Ans  : Any HTTP server will work

Ques : Which of the following is a block comment in JavaScript?
Ans  :  /* */

Ques : It might be needed to set the request content-type to XML explicitly. How can you do so for an XMLHttpRequest Object?
Ans  : myReq.setRequestHeader ("Content-Type", "text/xml");

Ques : Does JavaScript 1.5 have exception handling?
Ans  : yes

Ques : Which of the following cannot be resolved by using AJAX?
Ans  : Server crashes (failover)

Ques : Which of the following request types should be used with AJAX?
Ans  : HTTP GET request for retrieving data (which will not change for that URL)

Ques : When may asynchronous requests be used?
Ans  :  All of the above

Ques : Is it possible to access the browser cookies from a javascript application?
Ans  :    yes

Ques : Which of the following is not a JavaScript operator?
Ans  :  All of the above are Javascript operators

Ques : The server returns data to the client during an AJAX postback. Which of the following is correct about the returned data?
Ans  :  It only contains the data of the page elements that need to be changed

Ques : When doing an AJAX request, will the page be scrolled back to top as with normal requests?
Ans  : No

Ques : Javascript uses static bindings.
Ans  :  false

Ques : Which of the following is not a valid variable name in JavaScript?
Ans  :  2myVar

Ques : Is JavaScript the same as Java?
Ans  : no

Ques : What is NOSCRIPT tag for?
Ans  : To enclose text to be displayed if the browser doesn't support JS

Ques : In the following list, which states are valid?

XMLHttpRequest.readyState
Ans  : All of the above.

Ques : What is the standardized name of JavaScript?
Ans  : ECMAScript

Ques : which language does AJAX use on the server side?
Ans  : Any language supported by the server

Ques : Which of the following is/are not addressed by AJAX?
Ans  :  Offline browsing

Ques : Which of the following are drawbacks of AJAX?
Ans  : The browser back button cannot be used in most cases

Ques : What is the correct syntax to create an array in JavaScript?
Ans  : var array = new Array ();

Ques : Consider the following
function:


function foo ()
{
return 5;
}

What will the following code do?

var myVar = foo;
Ans  :  Assign the pointer to function foo to myVar

Ques : What should be called before 'send ()' to prepare an XMLHttpRequest object?
Ans  : open ()

Ques : Can you start multiple threads with JavaScript?
Ans  : No

Ques : Can AJAX be used to move files on the client-side?
Ans  :  No

Ques : Which of the following status codes denotes a server error?
Ans  :  500

Ques : When a user views a page with JavaScript in it, which machine executes the script?
Ans  :  The client machine running the Web Browser

Thanks for watching this test Question & Answers. Please don't forget to leave a comment about this post. You can also find some more effective test question & answers, information, techtunes, technology news, tutorials, online earning information, recent news, results, job news, job exam results, admission details & another related services on the following sites below. Happy Working!
News For Todays UpWork Elance Tests oEtab ARSBD-JOBS DesignerTab
UpWork (oDesk) & Elance AJAX Test Question & Answers Reviewed by ARSBD on June 29, 2015 Rating: 5
All Rights Reserved by RESULTS & SERVICES | ARSBD © 2014 - 2015
Powered by DesignerTab

Contact Form

Name

Email *

Message *

Powered by Blogger.