Exam 13: Overloading and Templates

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

Which of the following is a built-in operation on classes?

(Multiple Choice)
4.8/5
(33)

In C++,a function ____________________ can be overloaded.

(Short Answer)
4.8/5
(26)

In C++,operator is a reserved word.

(True/False)
4.7/5
(35)

The general syntax of the function prototype to overload the stream extraction operator >> for a class is ____.

(Multiple Choice)
4.9/5
(44)

The general form of the functions to overload the binary operators as member functions of a class is returnType operator#(____ className&)const;.

(Multiple Choice)
4.7/5
(40)

The ____________________ operator causes a member-wise copy of the member variables of the class.

(Short Answer)
4.9/5
(45)

The ____________________ operator function as a member of a class has only one parameter; as a nonmember of a class,it has two parameters.

(Short Answer)
4.8/5
(43)

Which of the following is the general syntax of the function prototype to overload the pre-increment operator as a nonmember function?

(Multiple Choice)
4.9/5
(39)

The operators that cannot be overloaded are .,.*,::,?:,and ____________________.

(Short Answer)
4.9/5
(36)

A(n)____ function is a nonmember function that has access to all members of the class.

(Multiple Choice)
4.8/5
(33)

When the post-increment operator is overloaded as a nonmember function of the class,the operator function has ____ parameter(s).

(Multiple Choice)
4.9/5
(41)

When writing the definition of a friend function,the name of the class and the scope resolution operator precede the name of the friend function in the function heading.

(True/False)
4.9/5
(40)

The declaration of a friend function cannot be placed within the private part of the class.

(True/False)
4.9/5
(37)

To overload a(n)____________________ operator for a class,if the operator function is a nonmember,it has one parameter.

(Short Answer)
4.7/5
(43)

Which of the following function prototypes overloads the != operator for the class rectangleType?

(Multiple Choice)
4.9/5
(30)

Most operator functions can either be member functions or nonmember functions of a class.

(True/False)
4.7/5
(39)

When an object invokes a member function,the member function references the pointer ____ of the object.

(Multiple Choice)
4.9/5
(31)

The name of the function to overload the operator <= is ____.

(Multiple Choice)
4.9/5
(37)

Class templates are called ____ types.

(Multiple Choice)
4.8/5
(36)

The ____________________ members of a class are local to the class and,therefore,cannot be accessed outside of the class.

(Short Answer)
4.8/5
(31)
Showing 21 - 40 of 50
close modal

Filters

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