JavaScript Quiz 1

First Name
Last Name
Password
Password

 

  1. if minutes = 9 & timeSt = ((minutes < 10) ? ":0" : ":") + minutes; Then timeSt equals
    A. :0
    B. :09
    C. :9
    D. 9
  1. The prompt() method requires two pieces of information. The first is text to be displayed, and the second is the default data in the entry field.
    A. true
    B. false
  1. You have to specify the language attribute when using the SCRIPT tag.
    A. true
    B. false
  1. The attributes for the SCRIPT tag are:
    A. LANGUAGE
    B. INCLUDE
    C. EXT
    D. ARCHIVE
    E. SRC
  1. The extension for external files within the SCRIPT tag is
    A. .ext
    B. .pl
    C. .js
    D. .inc
  1. JavaScript comment tags (not HTML tags)
    A. //
    B. <!-- xxxx -->
    C. /* xxx */
    D. ‘
    E. rem
  1. document.write('<IMG SRC="welcome.gif">'); is a valid JavaScript statement
    A. true
    B. false
  1. a == b returns (if a = new Array(1,2) and b = new Array(1,2))
    A. true
    B. false
  1. 4 == "4" returns
    A. true
    B. false
  1. Which of the following are legal variable names?
    A. _dummy
    B. v13
    C. 13v
    D. A9