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
Custom Objects: Creating and Searching a Database
True or False
1
A database is very similar to a spreadsheet: Each spreadsheet column is a database record and each spreadsheet row is a database field.
A)
TRUE
B)
FALSE
2
A database is very similar to a JavaScript object: Each spreadsheet column is a property of the object and each spreadsheet row is an object itself.
A)
TRUE
B)
FALSE
3
A JavaScript database is an array of objects.
A)
TRUE
B)
FALSE
4
A JavaScript database containing employee contact information is usually stored in the user's cookie file.
A)
TRUE
B)
FALSE
5
A JavaScript database exists in the source code of the web page itself, which cannot be changed by the user.
A)
TRUE
B)
FALSE
6
When Web page designers need to add database capabilities to a Web site, they typically create and store the database on the server (or on a computer connected to the server).
A)
TRUE
B)
FALSE
7
When you enter a word or phrase into a “search” textbox on a Web page and click a “Search” button, the information you typed in the textbox typically is sent back to the server and its database for processing (which involves CGI programming, Active Server Pages or other similar technologies).
A)
TRUE
B)
FALSE
8
To delete an object from a JavaScript database, you must write a special destructor function.
A)
TRUE
B)
FALSE
9
The following constructor function is valid:
function addressEntry(nm, adr, ph) {
this.name = nm
this.address = adr
this.phone = ph
}
A)
TRUE
B)
FALSE
10
The following constructor function is valid:
function addressEntry(name, address, phone) {
this.name = name
this.address = address
this.phone = phone
}
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
.