Exam 11: Operator Overloading; String and Array Objects

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

To use an operator on user-defined class objects, operator overloading:

(Multiple Choice)
4.9/5
(38)

To implicitly overload the += operator:

(Multiple Choice)
4.9/5
(36)

Y and z are user-defined objects and the += operator is an overloaded member function. The operator is overloaded such that y += z adds z and y, then stores the result in y. Which of the following expressions is always equivalent to y += z?

(Multiple Choice)
4.9/5
(41)

Which statement about operator overloading is false?

(Multiple Choice)
4.8/5
(30)

Which of the following is false?

(Multiple Choice)
4.9/5
(33)

Because the postfix increment operator returns objects by value and the prefix increment operator returns objects by reference:

(Multiple Choice)
4.8/5
(31)

The delete operator:

(Multiple Choice)
4.8/5
(36)

Proxy classes are best described as an example of:

(Multiple Choice)
4.8/5
(42)

In addition to hiding the implementation details that the ordinary method of "separating implementation from interface" would hide, using a proxy class also hides:

(Multiple Choice)
4.9/5
(41)

The array subscript operator [], when overloaded, cannot:

(Multiple Choice)
4.8/5
(35)

Which situation would require the operator to be overloaded as a global function?

(Multiple Choice)
4.8/5
(38)

To prevent class objects from being copied:

(Multiple Choice)
4.8/5
(38)
Showing 21 - 32 of 32
close modal

Filters

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