McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | Information Center | Home
Sample Code
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




McGraw-Hill/Irwin