Filters
Question type

Study Flashcards

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


A) constructor
B) object
C) instance
D) class

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

The code  new Date() creates an empty Date object.

A) True
B) False

Correct Answer

verifed

verified

The principle of ____________________ states that any methods and properties that other programmers do not need to access or know about should be hidden.

Correct Answer

verifed

verified

Why is JavaScript said to be an object-based programming language?

Correct Answer

verifed

verified

JavaScript is not a true object-oriented...

View Answer

If you assign the current date and time to a variable, what is the value of that variable one hour later? Explain.

Correct Answer

verifed

verified

The value would be the same as it was at...

View Answer

Objects are also called ____.


A) data
B) functions
C) methods
D) components

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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


A) instance
B) interface
C) template
D) black box

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) value from 0-11
B) value from 1-12
C) two-letter abbreviation
D) three-letter abbreviation

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

You can use the Math  object directly in your programs without instantiating a new object.

A) True
B) False

Correct Answer

verifed

verified

What is a sub-object? Provide an example.

Correct Answer

verifed

verified

The value of a property can be another o...

View Answer

____________________ refers to the creation of reusable software objects that can be easily incorporated into multiple programs.

Correct Answer

verifed

verified

Object-ori...

View Answer

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

A) True
B) False

Correct Answer

verifed

verified

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


A) Zone
B) Calendar
C) Date
D) Time

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What are some of the benefits of encapsulation?

Correct Answer

verifed

verified

By removing the ability to see inside th...

View Answer

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

A) True
B) False

Correct Answer

verifed

verified

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


A) Integer
B) Number
C) Math
D) Limits

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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


A) parallel
B) class
C) associative
D) bidimensional

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

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


A) toFixed()
B) toLocaleString()
C) toPrecision()
D) toString()

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

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


A) colons
B) spaces
C) semicolons
D) commas

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

Showing 21 - 40 of 41

Related Exams

Show Answer