JavaScript Quiz 1
First Name
Last Name
Password
Password
if minutes = 9 & timeSt = ((minutes < 10) ? ":0" : ":") + minutes; Then timeSt equals
A. :0
B. :09
C. :9
D. 9
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
You have to specify the language attribute when using the SCRIPT tag.
A. true
B. false
The attributes for the SCRIPT tag are:
A. LANGUAGE
B. INCLUDE
C. EXT
D. ARCHIVE
E. SRC
The extension for external files within the SCRIPT tag is
A. .ext
B. .pl
C. .js
D. .inc
JavaScript comment tags (not HTML tags)
A. //
B. <!-- xxxx -->
C. /* xxx */
D. ‘
E. rem
document.write('<IMG SRC="welcome.gif">'); is a valid JavaScript statement
A. true
B. false
a == b returns (if a = new Array(1,2) and b = new Array(1,2))
A. true
B. false
4 == "4" returns
A. true
B. false
Which of the following are legal variable names?
A. _dummy
B. v13
C. 13v
D. A9