Chapter 7 Flashcards

(30 cards)

1
Q

T/F You can use the Math object directly in your programs without instantiating a new object

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The code new Date() creates an empty Date object

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You can create an empty object by assigning a pair of empty braces to a variable name

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The value of an object property can be another object

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The code for a method must be stored in an external function

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Objects are also called BLANK

A

components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The term BLANK refers to information contained within variables or other types of storage structures

A

data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The code (method and statements) and data (variables and constants) contained in an encapsulated object are accessed through a(n) BLANK

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A(n) BLANK is an object that has been created from an existing class

A

instance?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

BLANK refers to cleaning up, or reclaiming, memory that is reserved by a program

A

???

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The BLANK class contains methods and properties for manipulating the date and time

A

Time ??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The BLANK class contains methods for manipulating numbers and properties that contain static values representing some of the numeric limitations in the JavaScript language

A

Number ??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The BLANK class contains methods and properties for mathematical calculation in your programs

A

Math

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A(n) BLANK function is a function that is used as the basis for a custom object

A

constructor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

To execute the same statement or command block for all the properties within a custom object, you can use the BLANK statemetn

A

???

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A(n) BLANK array is an array whose elements are referred to with an alphanumeric key instead of an index number

17
Q

To delete a specific property in a custom object, you use the BLANK operator

18
Q

You can create a function that will be used as an object method by referring to any object properties it contains with the BLANK reference

19
Q

The BLANK property is a built-in property that specifies the constructor from which an object was instantiated

20
Q

When working with a date, JavaScript stores the month as a BLANK

A

value from 0-11 ??/

21
Q

The BLANK class requires you to use a constructor

22
Q

Which Number class method can you use to convert a number to a string that is formatted with local numeric formatting style?

A

toString() ???

23
Q

Which method of the Math object rounds a value to the next lowest integer?

24
Q

When creating an object using a literal, you separate multiple property-value pairs with BLANK

25
To add a property to a constructor function, you must add a statement to the function body that uses the BLANK keyword
property ???
26
BLANK refers to the creation of reusable software objects that can be easily incorporated into multiple programs
Object-oriented Programming
27
The principle of BLANK states that any methods and properties that other programmers do not need to access or know about should be hidden
information hiding
28
A particular instance of an object BLANK its methods and properties from a class--that is, it takes on the characteristics of the class on which it is based
inherits
29
You can append the name of any Number class method or property to the name of an existing variable that contains a(n) BLANK value
numeric?????
30
You can create an empty object by assigning a pair of empty BLANK to a variable name
curly braces