Exam 11: Object-Oriented Programming and Arrays

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

To call a regular method, you preface the method name with an object and a dot. The object is referred to as a cotterized object.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

False

Polymorphism refers to a variable's ability to change its type from a string to a number.

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

False

To emulate a class with legacy code, you implement a function whose name serves as a class name, and that function then serves as a constructor.

Free
(True/False)
4.7/5
(44)
Correct Answer:
Verified

True

Legacy code is code that has improved over time to the point where it is now considered an exemplar of what good code should look like.

(True/False)
4.8/5
(30)

For the switch statement, if you need to do something special when there are no case constants that match the controlling expression's value, then you should use the keyword ______ at the bottom of the switch statement to handle that situation.

(Short Answer)
4.8/5
(31)

If you declare a variable with <code>var</code>, but do not initialize it to a value, what will the variable contain?

(Multiple Choice)
4.7/5
(30)

To implement a subclass, you need to append the keyword ______ and then the superclass name to the end of the subclass's heading.

(Short Answer)
4.9/5
(45)

UML stands for Unified __________ Language.

(Short Answer)
4.8/5
(36)

When a function is called by another function (as opposed to when a function is called by an event handler attribute like onclick), the called function is known as a helper function.

(True/False)
4.8/5
(34)

The ______ method searches for a specified value within the calling object array's elements. It returns the index of the first element that holds the value.

(Short Answer)
4.9/5
(35)

What is the difference between a method heading and a function heading?

(Multiple Choice)
4.9/5
(45)

The switch statement is most similar to which of the following?

(Multiple Choice)
4.9/5
(38)

Typically, what's the first thing you should do you in a subclass constructor?

(Multiple Choice)
4.7/5
(32)

OOP stands for ____________________.

(Short Answer)
4.7/5
(32)

To sort an array of objects, you need to define a comparison function. The comparison function:

(Multiple Choice)
4.9/5
(31)

A class property is associated with a class as a whole, not with an individual instance of a class.

(True/False)
4.8/5
(36)

Why might it be appropriate for a button's onclick event-handler function to call its event object's stopPropagation method?

(Essay)
4.9/5
(34)

If you would like to sort an array of date values, you should do which of the following?

(Multiple Choice)
4.9/5
(23)

An object has properties and methods. It is the properties that provide the interface with the outside world.

(True/False)
4.8/5
(39)

Using the formal JavaScript inheritance terms, which of the following is true?

(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 30
close modal

Filters

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