Chapter 7 Flashcards

1
Q

The ____ 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
2
Q

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

A

associative

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

The ____ class contains methods and properties for manipulating the date and time.

A

Date

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

When working with a date, JavaScript stores the month as a ____.

A

value from 0-11

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

The ____ class contains methods and properties for performing mathematical calculations in your programs.

A

Math

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

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

A

prototype

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

A(n) ____ 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
8
Q

Objects are also called ____.

A

components

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

To add a property to a constructor function, you must add a statement to the function body that uses the ____ keyword.​

A

this

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

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

A

for/in

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

The code (methods and statements) and data (variables and constants) contained in an encapsulated object are accessed through a(n) ____.

A

interface

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

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

A

​toLocaleString()

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

A(n) ____ 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
14
Q

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

A

delete

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

Programming code and data that can be treated as an individual unit or component

A

object

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

Type of array that enables you to add object properties incorporating numbers

A

associative

17
Q

Elements required for a source program to communicate with an object

A

interface

18
Q

A template, or blueprint, that serves as the basis for new objects

A

class

19
Q

Returns the square root of the specified value

A

sqrt()

20
Q

Converts a number to a string using the number of decimal places specified

A

toFixed()

21
Q

The easiest way to declare a custom object

A

literal

22
Q

Returns a value rounded to the nearest integer

A

round()

23
Q

Creates a Date object containing the current date

A

new Date()

24
Q

​A function assigned a name within a custom object

A

method

25
Q

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

A

this

26
Q

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

A

​floor()

27
Q

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

A

Garbage collection

28
Q

Which class requires you to use a constructor?​

A

Date

29
Q

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

A

data

30
Q

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

A

commas