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?
A. xmlhttp.send();
B. var xmlhttp = new XMLHttpRequest();
C. xmlhttp.open("GET", "fish.xml", true);
D. xmlhttp.onreadystatechange = showFish();
Which statement will open this Web document in a new browser window?
A. document.open(http://www.CIWcertified.com);
B. window.open(http://www.CIWcertified.com);
C. window.open("http://www.CIWcertified.com");
D. document.open("http://www.CIWcertified.com");
When used in conjunction with SQL, a server-side language (such as PHP) and a database (such as mySQL), AJAX can perform which of the following database operations?
A. Update the database schema and table relationships
B. Create custom database views and stored procedures
C. Modify database security permissions, including changing the database owner
D. Retrieve information from a database and display it back to the page originating the request
Which statement will return the name of the browser being used to view the script?
A. navigator.appName
B. navigator.platform
C. navigator.userAgent
D. navigator.appVersion
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
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.
Which of the following is a reason why a developer would use a JavaScript library?
A. JavaScript libraries ensure quality code that does not harbor security risks.
B. JavaScript libraries require a shorter learning curve than JavaScript.
C. JavaScript libraries are subsets of Java and thus provide more powerful code.
D. JavaScript libraries provide platform-independent code that will behave identically in any browser.
How is the alert() method different from prompt() and confirm()?
A. The alert() method generates a modal dialog box, which requires user action before the next JavaScript instruction can be executed,whereas prompt() and confirm() do not.
B. The alert() method requires only one parameter, whereas prompt() and confirm() require two parameters.
C. The alert() method requires two parameters, whereas prompt() and confirm() require only one parameter.
D. The prompt() and confirm() methods return a value, whereas alert() does not.
Consider the following code:

When a user clicks on the displayed link, which site will he navigate to?
A. www.msn.com
B. www.yahoo.com
C. www.google.com
D. No other site, because there is a runtime error
Consider the following code:

What is the expected output when you run this script in a browser?
A. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the textin the text box will change to New Value. Upon clicking the button again, the text in the text box will change back to Old Value.
B. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the text inthe text box will change to New Value. Upon clicking the button again, the text in the text box will change to Old Value, New Value.
C. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the text inthe text box will change to New Value. Upon clicking the button again, you will see nothing change.
D. This script will not run. You will get an error because the value="Old Value" statement in the tag contains the reserved wordValue within the quotes.