Exam 10: Operator Overloading; String and Array Objects

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

The correct function name for overloading the addition (+) operator is:

(Multiple Choice)
4.8/5
(30)

The prototypes of overloaded cast operator functions do not:

(Multiple Choice)
4.9/5
(30)

Which situation would require the operator to be overloaded as a non-member function?

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(29)

Suppose the unary ! operator is an overloaded member function of class String. For a String object s, which function call is generated by the compiler when it finds the expression !s?

(Multiple Choice)
4.8/5
(32)

Suppose you have a programmer-defined data type Data and want to overload the << operator to output your data type to the screen in the form cout << dataToPrint; and allow cascaded function calls. The first line of the function definition would be:

(Multiple Choice)
4.8/5
(37)

Which statement about operator overloading is false?

(Multiple Choice)
4.8/5
(40)

The delete [] operator:

(Multiple Choice)
4.8/5
(29)

Which of the following is false?

(Multiple Choice)
4.8/5
(42)

Which statement about operator overloading is false?

(Multiple Choice)
4.8/5
(36)

To implicitly overload the += operator:

(Multiple Choice)
4.9/5
(42)

The code ", have a great day!"s Is an example of ________:

(Multiple Choice)
4.8/5
(24)

The conventional way to distinguish between the overloaded preincrement and postincrement operators (++) is:

(Multiple Choice)
4.9/5
(42)

Which of the following operators can be overloaded as a non-member function?

(Multiple Choice)
4.9/5
(37)
Showing 21 - 34 of 34
close modal

Filters

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