6) Data values can be referenced:
A) as variables local to a handler
B) as variables global to a handler
C) as a variable in another element
D) all of the above
7) To reference a variable in another element, you must use a:
A) local variable
B) global variable
C) dot operator
D) none of the above
8) The program that performs a task to respond to an event is an:
A) input processor
B) input handler
C) error handler
D) event handler
9) When a button is clicked in a form:
A) a click event is generated
B) the form closes
C) the form is erased
D) a dialog box is displayed
10) An advantage of the <button > tag over <input type=”button” > is that
A) it allows control over the displayed size.
B) it supports the onclick event, which input does not.
C) the button can contain any HTML, including an image.
D) only one input button is allowed in any HTML form.
11) Consider <button onclick=’ounce=8′> S </button>
A) This will set both onclick and ounce to 8.
B) The first equal sign is some HTML, the second is some JavaScript.
C) This is an error: <button> does not use a closing tag.
D) This is an error: only one = is allowed.