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
Objects and Variables
True or False
1
JavaScript is best described as an object-oriented language.
A)
TRUE
B)
FALSE
2
A software object has a state and certain behaviors.
A)
TRUE
B)
FALSE
3
The code module that is part of an object is also known as the object's methods.
A)
TRUE
B)
FALSE
4
The state of an object is defined by the values of its properties.
A)
TRUE
B)
FALSE
5
JavaScript is not a case-sensitive language, so the same name can be typed as cuppaJava or CUPPAjava
A)
TRUE
B)
FALSE
6
When a variable in a language can hold only one type of data, the language is "loosely typed".
A)
TRUE
B)
FALSE
7
7-Up is a not a valid variable name but 7_Up is.
A)
TRUE
B)
FALSE
8
The statement var userName = prompt("enter name") assigns a value of type string to userName.
A)
TRUE
B)
FALSE
9
The statement document.bgcolor = "blue" correctly changes the background color of the current document to blue.
A)
TRUE
B)
FALSE
10
Assuming the user clicks OK, the following statement displays true: alert(confirm("Should I stay Or should I go?"))
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
.