CIW
1D0-635 · Question #21
Consider the following code fragment, which sets up the retrieval of an XML document named fish.xml and calls a function named showFish(): var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET"…
Sign in or unlock 1D0-635 to reveal the answer and full explanation for question #21. The question stem and answer options stay visible for context.
Question
Consider the following code fragment, which sets up the retrieval of an XML document named fish.xml and calls a function named showFish():
var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "fish.xml", true); xmlhttp.onreadystatechange = showFish(); xmlhttp.send(); Which line of code initializes the XMLHttpRequest object?
Options
- Axmlhttp.send();
- Bvar xmlhttp = new XMLHttpRequest();
- Cxmlhttp.open("GET", "fish.xml", true);
- Dxmlhttp.onreadystatechange = showFish();
Unlock 1D0-635 to see the answer
You've previewed enough free 1D0-635 questions. Unlock 1D0-635 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.