Exam 7: Using Object Oriented Javascript

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which class requires you to use a constructor?

Free
(Multiple Choice)
5.0/5
(39)
Correct Answer:
Verified

C

Explain the difference between the Number and Math classes.

Free
(Essay)
4.8/5
(30)
Correct Answer:
Verified

The Number class  contains methods for manipulating numbers and properties that contain  static values representing some of the numeric limitations in the JavaScript language (such  as the largest positive number that can be used in JavaScript.
The Math class  contains methods and properties for performing mathematical calculations  in your programs.

The value of an object property can be another object.

Free
(True/False)
5.0/5
(34)
Correct Answer:
Verified

True

Match each statement below with a corrct item:
Programming code and data that can be treated as an individual unit or component
associative
Returns the square root of the specified value
literal
A function assigned a name within a custom object
toFixed()
Correct Answer:
Verified
Premises:
Responses:
Programming code and data that can be treated as an individual unit or component
associative
Returns the square root of the specified value
literal
A function assigned a name within a custom object
toFixed()
Type of array that enables you to add object properties incorporating numbers
interface
The easiest way to declare a custom object
new Date()
Returns a value rounded to the nearest integer
round( )
Elements required for a source program to communicate with an object
sqrt()
Converts a number to a string using the number of decimal places specified
method
A template, or blueprint, that serves as the basis for new objects
object
Creates a Date object containing the current date
class
(Matching)
4.8/5
(26)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(37)

Describe two ways of adding properties to an object.

(Essay)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(38)

Describe two ways of adding a method to an object.

(Essay)
4.9/5
(38)

What is garbage collection and how is it performed in JavaScript apps?

(Essay)
4.8/5
(40)

You can append the name of any Number class method or property to the name of an existing variable that contains a(n)____________________ value.

(Short Answer)
4.9/5
(37)

How do you declare a property within an object literal?

(Essay)
4.7/5
(32)

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

(Multiple Choice)
4.8/5
(33)

A particular instance of an object ____________________ its methods and properties from a class-that is, it takes on the characteristics of the class on which it is based.

(Short Answer)
4.8/5
(38)

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

(Multiple Choice)
4.7/5
(35)

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

(Multiple Choice)
4.9/5
(42)

How can you get the full text of the day of the week based on information retrieved from a Date object?

(Essay)
4.9/5
(46)
Showing 1 - 20 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)