Web
Analytics

Internet Programming
AJAX Test
Can you answer 25 questions in 10 minutes?


Practice this Upwork Skill Test. Freelancers take skill tests on Upwork to show their skills to potential clients and to make themselves more marketable. Upwork suggests you take as many tests as you want -  your skills are shown on your Upwork profile page.


AJAX Test |

Which of the following is/are not addressed by AJAX?
Server side scripting
PHP
All of the above
Offline browsing
Partial page update

Is it possible to create and manipulate an image on the client with AJAX?
Yes
No
ResponseData
ResponseText
ResponseString

Can an AJAX application communicate with other applications on the client computer?
Var array = new Array/p>


Yes
No
Var array = [];
MyRequest.addCallback (calc - "loaded");


What is the third (async) parameter of the XMLHttpRequest open method?
If true - the javascript engine is blocked while making the request
If true - the request doesn't return anything.
It will remove the onreadystatechange event handler
If true - the request object is destroyed when 'send' is executed
If true - the send method returns immediately

Which of the following cannot be resolved by using AJAX?
Server crashes (failover)
Partial page processing
Unresponsiveness of web pages
MyReq.contentType = "xml"/p>


Server side communication initiation


What is NOSCRIPT tag for?
To enclose text to be displayed if the browser doesn't support JS
MY_VAR
To shield a part of a page from being modified by JS (like aDiv.innerHTML = 'something' has no effect)
To prevent the page scripts from executing
NOSCRIPT tag doesn't exist

It might be needed to set the request content-type to XML explicitly. How can you do so for an XMLHttpRequest Object?
/* */
MyReq.contentType = "text/xml";
MyReq.contentType = "xml"/p>


MyReq.overrideContentType ("xml");
MyReq.setContentType ("text/xml");


Can an HTML form be sent with AJAX?
No
Partial page update
MyRequest.execute = calc;
MyRequest.addCallback (calc - "loaded");
Yes

Can AJAX be used with PHP?
No
PHP
Yes
Yes
Ruby

In the following list - which states are valid?XMLHttpRequest.readyState
To enclose text to be displayed if the browser doesn't support JS
2 - The request has been sent
0 - The request is not initialized
1 - The request has been set up
3 - The request is in process

Which of the following request types should be used with AJAX?
HTTP GET should be used when the state is updated on the server
HTTP POST should be used when the state is updated on the server
HTTP GET request for retrieving data (which will not change for that URL)
It can only be implemented with the XMLHttpRequest object
HTTP POST request for retrieving data (which will not change for that URL)

What is the correct way to execute the function "calc()" when an XMLHttpRequest is loaded?
Partial page update
MyRequest.onload = calc;
MyRequest.addCallback (calc - "loaded");
MyRequest.onreadystatechange = calc/span>
MyRequest.execute = calc;

Which of the following browsers provide XMLHttpRequest property?
Internet Explorer 5
Firefox 2.0/p>


It's a server side scripting language used to serve partial parts of a webpage
Internet Explorer 6


Is JavaScript the same as Java?
Yes
No
MY_VAR
__MyVar2__

Which of the following describes the term 'Asynchronous' correctly?
Yes
None of the above
Processes are dependent upon other processes
Ability to handle processes independently from other processes
Processes are not fully dependent on other processes

What is the correct way to have the function checkState called after 10 seconds?
None of the above
Window.setTimeout(checkState() - 10);
Window.setTimeout(checkState - 10)/p>


If true - the javascript engine is blocked while making the request
Window.setTimeout(checkState - 10000)/span>


Is it possible to access the browser cookies from a javascript application?
To download an image
To load additional code from the server
No
Yes
To submit data to the server

Does JavaScript 1.5 have exception handling?
Yes
No
MyReq.contentType = "xml"/p>


MyReq.setContentType ("text/xml");
MyReq.overrideContentType ("xml");


When doing an AJAX request - will the page be scrolled back to top as with normal requests?
It contains both the data of the whole page and the data that needs to be changed in separate blocks
It contains the data of the whole page
Yes
No
It may contain anything

Which of the following list is/are true regarding AJAX?
It can only be implemented with the XMLHttpRequest object
No
It can be used to make requests to the server without blocking the user (async)
It can be used to update parts of a webpage without reloading it
It requires a special AJAX enabled web server

Can a client AJAX application be used to fetch and execute some JavaScript code?
To load additional code from the server
Yes
No
To download an image


250 Top Work & Personal Skills Made Easy

The First & Only Encyclopedia of Self Help,
Self Improvement & Career Advice

250+ Easy-to-Follow Guides
5000+ Proven Tips

13 Types of Essential Skills Covered
Get The Value of 100+ Best Books in 1 Book.

502 Pages | $3.99 | PDF / EPub, Kindle Ready


 
 
 




Please report any error in fatskills quizzes and questions to 'simpleversity at gmail.com'.

Without work one finishes nothing. - Ralph Waldo Emerson

© The Simple Project 2020