Exam 11: More About Classes and Object-Oriented Programming

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

If you do not furnish a(n) ________ for a class, a default will be provided for you by the compiler.

Free
(Multiple Choice)
5.0/5
(34)
Correct Answer:
Verified

D

You may overload any C++ operator, and you may use the operator function to define non-standard operators, such as @ and ^.

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

False

Some C++ operators cannot be overloaded by the programmer.

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

True

C++ permits you to overload the sizeof operator.

(True/False)
4.8/5
(38)

The structure member selector operator . cannot be overloaded.

(True/False)
4.9/5
(31)

If a member variable is declared ________, all objects of that class share access to that variable.

(Multiple Choice)
4.7/5
(35)

By default, when an object is assigned to another, each member of one object is copied to its counterpart in the other object.

(True/False)
4.9/5
(33)

A constructor that takes a single parameter of a type other than its class is called a convert constructor.

(True/False)
4.8/5
(37)

The this pointer is a special built-in pointer that is automatically passed as a hidden argument to all instance member functions.

(True/False)
4.8/5
(22)

The base class's ________ affects the way its members are inherited by the derived class.

(Multiple Choice)
4.8/5
(36)

If you overload the prefix ++ operator, the postfix ++ operator is automatically overloaded also.

(True/False)
4.8/5
(33)

A derived class may become a base class, if another class is derived from it.

(True/False)
4.8/5
(30)

To overload the + operator, you would write a function called

(Multiple Choice)
4.9/5
(35)

In the statement class Car:public Vehicle, which is the base class?

(Multiple Choice)
4.7/5
(34)

________ allows us to create new classes based on existing classes.

(Multiple Choice)
4.8/5
(43)

The ________ is a special built-in pointer that is available to a class's instance member functions.

(Multiple Choice)
4.9/5
(34)

A static member function cannot be called if no objects of the class exist.

(True/False)
4.9/5
(37)

When you derive a class from an existing class, you

(Multiple Choice)
4.8/5
(27)

A member function that is declared ________ cannot use the this pointer.

(Multiple Choice)
4.8/5
(32)

Protected members of a base class are like ________, with the exception that they may be accessed by derived classes.

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

Filters

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