Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
27 Cards in this Set
- Front
- Back
- 3rd side (hint)
When an object is encapsulated, you cannot see “inside” it—all internal workings are hidden. T or F
|
True
|
p281
|
|
When you use an object in your program, you actually create an instance of the class of the object. T or F
|
TRUE
|
p282
|
|
Because objects in the browser object model are actually part of the Web browser, you need to instantiate them in order to use them in your programs. T or F
|
FALSE
|
p283
|
|
The dates of the month and year in a Date object are stored using numeric representations, starting
with zero, similar to an array. T or F |
FALSE
|
p285
|
|
Like the Array, Date, and Number classes, the Math class does not contain a constructor. T or F
|
FALSE
|
p299
|
|
Objects are also called ____.
|
components
p279 |
a. data
b. classes c. methods d. components |
|
The term ____ refers to information contained within variables or other types of storage structures.
|
data
p279 |
a. data c. class
b. object d. instance |
|
Encapsulation places code inside what programmers like to call a “____”.
|
black box
p281 |
a. white box c. gray box
b. black box d. transparent box |
|
The code (methods and statements) and data (variables and constants) contained in an encapsulated
object are accessed through a(n) ____. |
interface
p281 |
a. white box c. interface
b. view d. template |
|
A(n) ____ is an object that has been created from an existing class.
|
instance
p282 |
a. instance c. template
b. interface d. black box |
|
When you create an object from an existing class, you are said to be ____ the object.
|
instantiating
p.282 |
a. pushing c. instantiating
b. hiding d. loading |
|
The ____ object is the only object in the W3C browser object model from which you can instantiate a new object.
|
Option
p284 |
a. Global c. Browser
b. Error d. Option |
|
____ refers to cleaning up, or reclaiming, memory that is reserved by a program.
|
Garbage collection
p285 |
a. Information hiding c. Data collection
b. Garbage collection d. Object hiding |
|
The ____ class contains methods and properties for manipulating the date and time.
|
Date
p285 |
a. Zone c. Date
b. Calendar d. Time |
|
The ____ class contains methods for manipulating numbers and properties that contain static values representing some of the numeric limitations in the JavaScript language.
|
Number
p296 |
a. Integer c. Math
b. Number d. Limits |
|
The ____ class contains methods and properties for performing mathematical calculations in your programs.
|
Math
p299 |
a. Number c. Function
b. Integer d. Math |
|
Although JavaScript is not a true object-oriented programming language, you can create basic objects and properties by using the ____ object.
|
Object
p303 |
a. Object c. Instance
b. Navigator d. Function |
|
You can define your own custom objects using a(n) ____ function.
|
constructor
p305 |
a. object c. instance
b. constructor d. class |
|
A(n) ____ function is a function that is used as the basis for a custom object.
|
constructor
p305 |
a. constructor c. instance
b. object d. class |
|
Another term for constructor function is ____.
|
object definition
p305 |
a. object function c. class definition
b. instance function d. object definition |
|
To execute the same statement or command block for all the properties within a custom object, you can use the ____ statement.
|
for...in
p307 |
a. for...each c. for...in
b. while...in d. loop...in |
|
One of the benefits of the for...in statement is that it ____, or assigns an index to, each property in an object.
|
enumerates
p308 |
a. enumerates c. orders
b. lists d. categorizes |
|
A(n) ____ is an array whose elements are referred to with an alphanumeric key instead of an index number.
|
associative array
p309 |
a. parallel array c. associative array
b. class array d. bidimensional array |
|
To delete a specific property in a custom object, you use the ____ operator.
|
delete
p311 |
a. remove c. erase
b. cancel d. delete |
|
You can create a function that will be used as an object method by referring to any object properties it contains with the ____ reference.
|
this
p313 |
a. self c. super
b. this d. object |
|
The ____ property is a built-in property that specifies the constructor from which an object was instantiated.
|
prototype
p317 |
a. experiment c. prototype
b. try d. test |
|
Match each item with a statement below:
a. object b. Java c. interface d. class e. Error f. Global g. toExponential(decimals) h. ceil(x) i. round(x) 1. Returns the value of x rounded to the nearest integer 2. Programming code and data that can be treated as an individual unit or component 3. Returns run-time error information 4. A template, or blueprint, that serves as the basis for new objects 5. Converts a number to a string in exponential notation using a specified number of decimal places 6. Popular object-oriented programming language 7. Returns the value of x rounded to the next highest integer 8. Stores global variables and contains various built-in JavaScript functions 9. Elements required for a source program to communicate with an object |
1. ANS: I PTS: 1 REF: 300
2. ANS: A PTS: 1 REF: 279 3. ANS: E PTS: 1 REF: 283 4. ANS: D PTS: 1 REF: 282 5. ANS: G PTS: 1 REF: 296 6. ANS: B PTS: 1 REF: 280 7. ANS: H PTS: 1 REF: 300 8. ANS: F PTS: 1 REF: 283 9. ANS: C PTS: 1 REF: 281 |
|