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

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




McGraw-Hill/Irwin