Which of the following is a valid variable name in JavaScript?
A. this
B. that
C. 2that
D. 2this
Consider the following code:

Which statement could be used to determine the value of the first radio button?
A. document.rdoGroup1.value
B. document.myForm.rdoGroup1[0].value
C. document.getElementById(rdoGroup1).value
D. document.getElementById("rdoGroup1").value
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.
Which statement is true about the getElementByID() method?
A. It returns only the first element with the specified ID.
B. It returns an array containing all elements with the specified ID.
C. If a match is not found for the specified ID, it will attempt searching by name.
D. If a match is not found for the specified ID, it will attempt searching by tag name.
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 choice demonstrates the correct syntax for declaring a variable?
A. var last name;
B. var andlastname;
C. var "lastname";
D. var lastName;
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
Consider the following code:

What needs to be changed to allow this script to run without error?
A. Change the substring method call to substr
B. Change the substring method call to substr()
C. Change the characterAt method call to charAt
D. Change the characterAt method call to characterat
Which of the following will correctly modify the value of an X/HTML element's attribute within the DOM?
A. getAttribute(NewValue, AttributeName)
B. getAttribute(AttributeName, NewValue)
C. setAttribute(NewValue, AttributeName)
D. setAttribute(AttributeName, NewValue)
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