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
Strings, Dates, and Cookies
True or False
1
Password validation is the process of looking it up in a database of current passwords.
A)
TRUE
B)
FALSE
2
Password verification is the process of checking to see if it meets restrictions like minimum length, etc.
A)
TRUE
B)
FALSE
3
Suppose a web page includes a form named f with a text field named fname in which the user has entered "Mave". Then the statement alert(document.f.fname.length) would display the number 4.
A)
TRUE
B)
FALSE
4
Suppose a web page includes a form named f with a text field named fname in which the user has entered "Mave". Then the statement alert(document.f.fname.value.size) would display the number 4.
A)
TRUE
B)
FALSE
5
Every string object has a method named subString()
A)
TRUE
B)
FALSE
6
There is no separate character data type in JavaScript-- characters are just strings of length = 1. The following alert displays 1:
var str = "abc", ch = s.charAt(0)
alert(c.length)
A)
TRUE
B)
FALSE
7
Changing the time and date values in a Date object is a good way to set the clock on the user's computer.
A)
TRUE
B)
FALSE
8
The total number of characters in all the cookies associated with a single domain may not exceed 4000 KB.
A)
TRUE
B)
FALSE
9
P3P, if widely adopted, would enable web surfers to specify how their personal information can or cannot be used as it is gathered at websites.
A)
TRUE
B)
FALSE
10
JavaScript is well suited to storing user information, such as displaying the user's name each time she or he visits a site
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
.