Student Center
|
Instructor Center
|
Information Center
|
Home
Sample Code
Choose a Chapter
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Multiple Choice Quiz
True or False
E-Lectures
Feedback
Help Center
Programming the Web Using XHTML and JavaScript
Larry Randles Lagerstrom
Putting It All Together: Online Quizzes and Slide Shows
True or False
1
Suppose a web page includes a form named f with a checkbox named cb1 that the user has checked. Then this statement :
if(document.f.cb1.selected == true) alert(true)
is equivalent to:
if(document.f.cb1.checked) alert(true)
A)
TRUE
B)
FALSE
2
The second argument to the setTimeout() function is a number that specifies the time interval in microseconds
A)
TRUE
B)
FALSE
3
The first argument to the setTimeout() function is a string that specifies the name of a function to call.
A)
TRUE
B)
FALSE
4
When the following two statements are executed, 1 is displayed in an alert box and then 2.
setTimeout("alert(2)", 5000)
alert(1);
A)
TRUE
B)
FALSE
5
The expression (document.images == true) tests whether there are any images displayed on the current web page.
A)
TRUE
B)
FALSE
6
The expression (document.images == true) tests whether the browser recognizes objects of type Image.
A)
TRUE
B)
FALSE
7
The browser generates a load event as soon as it starts loading a web page.
A)
TRUE
B)
FALSE
8
The expression if ((p && q) || (!t)) alert(true) is equivalent to if (p && q) || (!t) alert(true)
A)
TRUE
B)
FALSE
9
The expression ("yes" == "YES") evaluates to true because JavaScript ignores the differences in case when comparing strings.
A)
TRUE
B)
FALSE
10
The expression (true == "true") evaluates to true because JavaScript automatically converts the string "true" into the boolean constant true when making this comparison.
A)
TRUE
B)
FALSE
2003 McGraw-Hill Higher Education
Any use is subject to the
Terms of Use
and
Privacy Policy
.
McGraw-Hill Higher Education
is one of the many fine businesses of
The McGraw-Hill Companies
.