QUESTION: 12
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
Answer(s): B
QUESTION: 13
Which choice best defines events and event handlers?
A. An event can be an action initiated by the user, and an event handler specifies how
JavaScript will react to the action.
B. An event is an action initiated by the operating system, and an event handler is a function
defined by the user.
C. An event handler can be an action initiated by the user, and an event specifies how
JavaScript will react to the action.
D. An event is initiated by an error in JavaScript, and an event handler wil attempt to bypass the
error and continue.
Answer(s): A
QUESTION: 14
Consider the following code:
What is the output when you run this script in the browser?
A. An alert box displaying the following: John, Paul, George, Ringo
B. An alert box displaying the following: Ringo, John, Paul, George
C. An alert box displaying the following: Ringo, Paul, George
D. An alert box displaying the following: John, Ringo, George
6