Practice Quiz 2

<SCRIPT>

someFunction();

function someFunction() {
     do something;
}

</SCRIPT>

  1. the example above will result in a error
    A. true
    B. false
  1. a onMouseOver works for a button
    A. true
    B. false

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

  1. the javascript:void() above will produce an error
    A. true
    B. false
  1. <BODY onLoad="etc..."> takes places as the document is loaded
    A. true
    B. false
  1. using .js files makes it impossible for the browser user to see the code
    A. true
    B. false
  1. the <SCRIPT> tag can be placed just about anywhere on the document
    A. true
    B. false
  1. if the browser runs into a tag it doesn't understand it will produce an error message
    A. true
    B. false

function getCube(number) {
     return number * number * number;
}

  1. the example above is valid
    A. true
    B. false
  1. global variables are declared within a function
    A. true
    B. false
  1. global variables are available & accessible anywhere from within the document
    A. true
    B. false

You have: answers correct out of a possible ten.

The question numbers that were not correct are: