SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Ajax
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 36 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Process to sending ___________: create request object(var ajax= new XMLHTTPRequest())- attach event handler to onreadystatechange(ajax.onreadystatechange = function) - open a connection (ajax.open("get" -url -true); makes arrangements for the server
asynchronous
$
Ok all good
asynchronous requests
2. An object that allows requests to be made to the server without interrupting other browser tasks. Its an object and objects contain properties. The properties are: readyState - responseText - responseXML - status - statusText
getResponseHeader ("headername")
security restrictions
XTML HTTP Request (XHR object)
Scriptaculous
3. AJAX files ______________: Cannot be run from web page stored on hard drive - can only be run on web page stored on a web server
security restrictions
Scriptaculous
Unauthorized
XMLHttpRequest object
4. A lightweight data-interchange format
Ok all good
security restrictions
JSON (Javascript Object Notation)
$
5. At its core ________ is a way of showing data in a text format that is parsable. Without an associated style file.
responsive
XMLHttpRequest object
XML
open
6. 500 status message
object document
Autocompleter.Local
Not Found
Internal server error
7. Makes the necessary arrangements for the server
onreadystatechange
open
Scriptaculous
Ajax.Request constructor
8. The core Javascript object that makes Ajax possible. Can fetch files from a web server
ajax.responseText
XML
XTML HTTP Request (XHR object)
XMLHttpRequest object
9. Everything in a document - everything in a browser window is an object. When we talk about these objects the word for that is model. Documents on a webpage = the DOM.
XML
DOM (Document Object Model)
DOM inspector
send (content)
10. new Ajax.Request("file.php" - { method:"get" - parameters: {zip:valueOfZipCode} - onSuccess: displayCityState } );
inner anonymous function
prototype javascript library
Forbidden
Prototype ajax request
11. XMLHttpRequest to pass header name and get response.
XML
ajax (Asynchronous Javascript + XML)
XTML HTTP Request (XHR object)
getResponseHeader ("headername")
12. XML Allows you to use __________ as well because XML is a document.
Not Found
query string
DOM inspector
ajax (Asynchronous Javascript + XML)
13. JavaScript library built on top of Prototype that adds visual effects - drag and drop - and others (auto complete - in-place editors)
Bad Request
set of options
Scriptaculous
XMLHttpRequest object
14. Objects have properties such as the title tag on a page is a property of _________. Properties themselves are objects.
readyState property
inner anonymous function
object document
set of options
15. It can access surrounding local variables
Prototype
inner anonymous function
responsive
asynchronous
16. Handler that runs whenever readyState changes
onreadystatechange
Ajax.Request constructor
DOM inspector
Not Found
17. 200 status message
Ok all good
ajax (Asynchronous Javascript + XML)
open
Ajax.Autocompleter
18. Auto-completes from an array of choices
set of options
Prototype ajax request
Autocompleter.Local
Scriptaculous
19. Fetches and displays list of choices using Ajax
ajax (Asynchronous Javascript + XML)
Autocompleter.Local
Ajax.Autocompleter
open
20. 403 status message
Ajax.Autocompleter
Unauthorized
Forbidden
inner anonymous function
21. 400 status message
Bad Request
ajax.responseText
readyState property
Autocompleter.Local
22. A set of useful additional objects - methods - and cross-browser compatibility fixes
prototype javascript library
Not Found
DOM (Document Object Model)
XTML HTTP Request (XHR object)
23. Stores the value returned when send() is finished
Ok all good
Not Found
ajax.responseText
query string
24. 401 status message
Unauthorized
getResponseHeader ("headername")
query string
readyState property
25. Way of encoding parameters into a URL (parameter1=value1¶meter2=value2)(parameters are preceded by a ?)
open
responsive
query string
asynchronous interaction
26. symbol used to return the DOM object representing the element with a given id (replaces document.getElementById)
DOM (Document Object Model)
inner anonymous function
$
Internal server error
27. 404 status message
Not Found
ajax.responseText
asynchronous
onreadystatechange
28. Parameters of Prototype's Ajax.Request: object- URL of request - ________
send (content)
inner anonymous function
set of options
Not Found
29. The real value of XML HTTP request is in the way it is ________.
responsive
security restrictions
asynchronous
XTML HTTP Request (XHR object)
30. Options that can be passed to the ____________: method (get or post) - parameters to pass to the server
asynchronous requests
Ajax.Request constructor
Unauthorized
Ajax.Autocompleter
31. Sends request to server
Forbidden
XML
send (content)
open
32. Script to use _________: <script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js "></script>
getResponseHeader ("headername")
Prototype
readyState property
asynchronous
33. User can keep interacting with page while data loads
inner anonymous function
open
asynchronous interaction
security restrictions
34. Ajax helps make more ________ sites
responsive
onreadystatechange
Ajax.Request constructor
object document
35. A group of interrelated web development techniques used on the client-side to create interactive web applications - Loading information using JavaScript from a web server without refreshing the page. Asynchronous requests may be made and responses ar
Internal server error
ajax (Asynchronous Javascript + XML)
XTML HTTP Request (XHR object)
Prototype
36. This holds the status of the XMLHttpRequest - is set several times by the web server when the server is processing the request - values from 0-4 (4 implies that the request is completely processed by server)
Internal server error
XTML HTTP Request (XHR object)
readyState property
Unauthorized