Quiz 5 -- CS 290W -- Feb 16, 99

(1) What will appear in the HTML file if the...
function stop (which)
{
document.write("<" + which + ">");
}
... is called by...?
stop ("BR");
(1) <<+BR+>>
(2) <+BR+>
(3) "<"BR">"
(4) <BR>
(4)

(2) If you use...
confirm ("Would you like to order the tickets now?")
...what will be returned if the user clicks "Cancel"?
(1) true
(2) false
(3) "Would you like to order the tickets now?"
(4) empty character string
(2)

(3) If you use...
alert ("Concert sold out");
...what will be displayed?
(1) Box with text field "Concert sold out" which you may change by typing another another string in its place
(2) Box with label "Concert sold out" and a text field into which the user can type information
(3) Box with label "Concert sold out" and "OK" button and "Cancel" buttons
(4) Box with label "Concert sold out" and an "OK" button
(4)