When using AJAX, what is the purpose of the XMLHttpRequest object?
A. To transfer an XML document to the Web server
B. To request data from the Web server strictly in XML format
C. To read and write to an XML file stored on the local machine
D. To request either XML data or plaintext data from the Web server
Consider only the following code:
Which of the following would properly supply the sum of the two numbers?
A. return sum;
B. mySum (num1+num2);
C. return num1+num2;
D. return sum(num1+num2);
Which statement about the JavaScript form object is true?
A. The JavaScript form object has no relationship to the X/HTML
tags are present in the X/ HTML document.Consider the following code:
What is the expected result of this script?
A. When you leave the page, the alert box will display.
B. The page will ignore the function, so a blank page will display on entry and exit.
C. When you enter the page, you will be warned that there is unfinished JavaScript to run.
D. When you leave the page, there will be a JavaScript error because you cannot unload an alert box.
Consider the following message displayed in a pop-up window: Welcome to the CIW Web site! Which line of code will deliver the pop-up window that displays this message?
A. CIW Web site
B. CIW Web site
Consider the following code:
What will this alert display?
A. It is currently dark in the room
B. It is currently bright in the room
C. It is currently in the room
D. It is currently bright : dark in the room
Suppose you define two variables as follows:
var x = 5;
var y = "5";
Which statement will return the mathematical sum of these variables?
A. alert(x + int(y));
B. alert(x + parseInt(y));
C. alert(x + y);
D. alert((int)x + (int)y);
What is the purpose of the prototype property in JavaScript?
A. It is used to add properties or methods to a JavaScript object.
B. It returns a list of properties and methods of a JavaScript object.
C. It enables developers to create JavaScript code from a specially formatted prototype flowchart document.
D. It is used to create usage examples of custom objects because its output is not evaluated by the JavaScript interpreter.
Maria, a 22-year old student, is testing her JavaScript application, which includes the following code: Assuming Maria enters truthful information, what is the value of z after executing this code?
A. No value ?error in line 1 due to missing var keyword for userAge.
B. No value ?error in line 1 due to multiple declarations in one line.
C. Maria "is" 22 "years old"
D. Maria is 22 years old
You are developing a Web page for your company's site, and you plan to use a library plug-in from the jQuery library. Which choice describes the proper steps for using the plug-in?
A. After locating the plug-in that you want to use, you then copy the code from the jQuery site and paste it into your CSS file using the