Exam 14: Exploring Object-Based Programming

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

The nested function is hidden from other code in the script, making the code contained and easier to manage.

(True/False)
4.9/5
(44)

Identify the correct syntax to add methods to a custom object.

(Multiple Choice)
4.8/5
(41)

Simon uses the function.apply(thisObj[,argArray] method to call a method from another object class. In this method, argArray is a(n) _____.

(Multiple Choice)
4.7/5
(43)

Identify the apply() method used to borrow a method from one object class.

(Multiple Choice)
4.8/5
(37)

Write a note on nested functions.

(Essay)
4.7/5
(42)

Methods are shared between objects by applying or calling a method from one object for use in another object.

(True/False)
4.7/5
(34)

JavaScript objects do not support _____ like arrays do.

(Multiple Choice)
4.8/5
(32)

When you create a custom object using an object literal or by applying the new Object() command, you create a subclass of the _____.

(Multiple Choice)
4.8/5
(36)

Identify the significance of this keyword in the following constructor function. function objClass(parameters) { this.prop1 = value1; this.prop2 = value2; … this.method1 = function1; this.method2 = function2; … }

(Multiple Choice)
4.8/5
(37)

Case-Based Critical Thinking Questions Case 13-4 Edward wants to use object-based programming to create objects that belong to a specific type or class with shared properties and methods. Once the constructor function for the object class is defined, instances of the object are created with the _____ command.

(Multiple Choice)
4.9/5
(37)

Case-Based Critical Thinking Questions Case 13-3 Thomas wants to create a custom object using the new operator. He applies the following commands: var objName = new Object(); object.property = value; object.method = function() { commands }; The new Object() statement is equivalent to a(n) _____.

(Multiple Choice)
4.9/5
(37)

. If the constructor function is a machine to create object instances, then the _____ is the blueprint for the objects that are created.

(Multiple Choice)
4.8/5
(36)

A _____ does not follow a specific order because properties can be listed and read out in any order.

(Multiple Choice)
4.9/5
(36)

To create a custom object as an object literal, you apply the create() method.

(True/False)
4.8/5
(41)

Explain how you can apply a for…in loop.

(Essay)
5.0/5
(33)

Identify the structure in which any function, including named functions, is nested within another function.

(Multiple Choice)
5.0/5
(34)

Which of the following should be used to examine the properties and keys of an object?

(Multiple Choice)
4.8/5
(37)

The biggest advantage of an object created either as an object literal or with the new Object() command is that the object is reusable.

(True/False)
4.9/5
(39)

Identify the name:value pair that includes a function name and its commands, which is used to add methods to a custom object.

(Multiple Choice)
4.8/5
(39)

Which of the following commands is used to create a custom object using the new operator?

(Multiple Choice)
4.8/5
(29)
Showing 41 - 60 of 77
close modal

Filters

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