Which statement will correctly call a JavaScript function without error?
A. var myFunction()
B. initiate myFunction()
C. call myFunction()
D. myFunction()
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 of the following comparison statements will return true?
A. x = 10;y = 5;x <= y;
B. x = 10;y = 5;x !== "X"
C. x = 10;y = 5;x === y;
D. x = 10;y = 5;x == y;
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.
Which script block will display Hello World in the browser when the script is run?
A.
B.
C.
D.
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);
Which of the following will correctly declare the EmployeeID variable as a string data type?
A. string EmployeeID = 123;
B. string EmployeeID = "123";
C. var EmployeeID = 123;
D. var EmployeeID = "123";
Consider the following select list:

Which of the following will select the third option in the list?
A. var list = document.getElementById("numlist");list.selected = 3;
B. var list = document.getElementById("numlist");list.options[2].selectedIndex();
C. var list = document.getElementById("numlist");list.options.selectedIndex = 2;
D. var list = document.getElementById("numlist");list[3].selected(true);
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
Jane has created a file with commonly used JavaScript functions and saved it as "allFunctions.js" in the application's root directory. She wants to load this file into a Web page to access its functions. Which statement shows the correct syntax to do this?
A.
B.
C.
D.