Exam 11: Object-Oriented Programming and Arrays

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

Suppose an <code>onclick</code> event-handler function includes an <code>e</code> parameter for its passed-in event object. What code could be used to access the mouse pointer's x coordinate position?

(Multiple Choice)
4.9/5
(36)

The formal term for creating an object is:

(Multiple Choice)
4.7/5
(28)

Suppose that you have a class named Student with a method named payFees and that you have instantiated an object named student. Which of the following is a proper call to the payFees method?

(Multiple Choice)
4.8/5
(36)

If the following code executes, what message displays in the resulting dialog box? var x = 3.5; alert(x > 3 ? x + 1 : x - 1);

(Short Answer)
5.0/5
(38)

Sort the following three strings so they are in ascending lexicographical order (words that are considered less than other words should be at the left). "aardvark", "African polecat", "AARP"

(Short Answer)
4.8/5
(34)

The Array object's concat method returns a new array that is formed by concatenating the argument array to the end of the calling object array.

(True/False)
4.8/5
(36)

Suppose you have a subclass Truck, a superclass Vehicle, and a property in Vehicle named year. How can a method in Truck access the year property?

(Multiple Choice)
4.7/5
(39)

Provide code that instantiates an array named carMakes such that the new array contains "Ford" and "Honda".

(Short Answer)
4.9/5
(40)

A(n) __________ is a special method that gets called when there is an attempt to create an object.

(Short Answer)
5.0/5
(37)

What is a two-dimensional array?

(Short Answer)
4.8/5
(37)
Showing 21 - 30 of 30
close modal

Filters

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