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
Forms and the Interactive Surfer
True or False
1
If a form named f1 has two text fields named b1 and b2, then the following statement retrieves the value in b1 and displays it in b2: document.f1.b2 = document.f1.b1
A)
TRUE
B)
FALSE
2
If a form named f1 has two text fields named b1 and b2, then the following statement retrieves the value in b1 and displays it in b2: document.f1.b1.value = document.f1.b2.value
A)
TRUE
B)
FALSE
3
If a form named f1 has two text fields named b1 and b2, then the following statement exchanges the values in b1 and b2: document.f1.b1.value = document.f1.b2.value = document.f1.b1.value
A)
TRUE
B)
FALSE
4
Suppose an object is passed to a function with a parameter. Then any changes made to the parameter inside the function are made directly to the passed object.
A)
TRUE
B)
FALSE
5
Suppose an argument is passed to a function "by address". Then any changes made to the function's parameter inside the function are made directly to the passed argument.
A)
TRUE
B)
FALSE
6
If a form named f1 has two text fields named b1 and b2, then this function declaration will generate an error:
function greet(f){
f1.b2.value = f1.b1.value
}
A)
TRUE
B)
FALSE
7
If a form named f1 has two text fields named b1 and b2, then this function declaration will generate an error:
function greet(f){
document.f1.b2.value = document.f1.b1.value
}
A)
TRUE
B)
FALSE
8
A formal parameter in part of a function declaration.
A)
TRUE
B)
FALSE
9
An actual parameter is part of a function declaration.
A)
TRUE
B)
FALSE
10
When you click on a form field, a focus event has occurred in that field.
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
.