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

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




McGraw-Hill/Irwin