AJAX

 22 Minutes
 10 Questions


This test is designed to assess a candidate's knowledge of technology, AJAX, and the basics of web development. It will include questions on topics such as AJAX requests, JavaScript libraries, HTML and CSS fundamentals, and other related topics. The test will also include multiple-choice questions and coding challenges to evaluate the candidate's understanding of the material.


Example Question:

Multiple-Choice
What will happen when running the following code and pressing the "Foo" button?
Assuming:
- The file userguide.txt does not exist
- You use Chrome to run this code.
<html>
<head>
<script>
function ajaxCall()
{
var xmlhttp;
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==404)
{
document.getElementById("content").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","userguide.txt",true);
xmlhttp.send();
}
</script>
</head>
<body>
<div id="content">Content</div>
<button type="button" onclick="ajaxCall()">Foo</button>
</body>
</html>