Practice Quiz 1

<A HREF="javascript:void('')" onClick="alert('Ooo, do it again!');">Click on me!</A>
<A HREF="javascript:alert('Ooo, do it again!')" >Click on me!</A>

  1. the two statements above are "equivalent"
    A. true
    B. false
  1. To separate multiple commands in an Event Handler, use
    A. commas
    B. semicolons
    C. colons
    B. none of the above
  1. <!-- & //--> are used to hide JavaScripts from the older browsers
    A. true
    B. false
  1. <INPUT TYPE="text"> can only exist within a FORM
    A. true
    B. false

if (i <= 5) alert("The number needs to be greater than 5");

  1. the statement above is syntactically correct
    A. true
    B. false
  1. VBscript can be used by all browsers
    A. true
    B. false
  1. You can alter the document's title through JavaScript
    A. true
    B. false

if (i <= 5) alert("The number needs to be greater than 5");
IF (i <= 5) alert("The number needs to be greater than 5");

  1. the statements above are both correct
    A. true
    B. false
  1. eval("10 + 10") will result in an error message
    A. true
    B. false
  1. which is correct
    A. onClick
    B. onclick
    C. ONCLICK
    D. none of the above

You have:    answers correct out of a possible ten.

The question numbers that were not correct are: