Exam 11: More About Classes and Object-Oriented Programming

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

A member function of a derived class may not have the same name as a member function of a base class.

(True/False)
4.9/5
(79)

________ members of a base class are never accessible to a derived class.

(Multiple Choice)
4.8/5
(79)

When you overload the << operator, you must also overload the >> operator.

(True/False)
4.8/5
(80)

When a class declares an entire class as its friend, the friendship status is reciprocal. That is, each class's member functions have free access to the other's private members.

(True/False)
4.9/5
(86)

The process of having a class contain an instance of another class is known as

(Multiple Choice)
4.8/5
(85)

Each object of a class has its own copy of the class's

(Multiple Choice)
4.8/5
(69)

A static member function can be called independently of any object of the class.

(True/False)
4.8/5
(78)

To dereference an object pointer and access one of the object's members, use the

(Multiple Choice)
4.9/5
(68)

In C++, if you overload the < operator, you must also overload the > operator.

(True/False)
4.9/5
(69)

An rvalue is

(Multiple Choice)
4.9/5
(84)

C++ allows you to overload

(Multiple Choice)
4.8/5
(86)

If you do not furnish a(n) ________, an automatic memberwise copy will be performed when one object is assigned to another object.

(Multiple Choice)
4.9/5
(84)

In an inheritance situation, you can't pass arguments to a base class constructor.

(True/False)
4.7/5
(75)

You can overload the conditional operator to make it function as an unconditional operator.

(True/False)
4.8/5
(72)

The ________ class destructor is called before the ________ class destructor.

(Multiple Choice)
4.7/5
(78)

C++ requires that a copy constructor's parameter be

(Multiple Choice)
4.9/5
(90)

If an rvalue reference refers to a memory location, that memory location becomes an lvalue.

(True/False)
5.0/5
(80)

If a function f is a friend of a class A, and the class A is a friend of a class B, then the function f is able to access private members of B.

(True/False)
4.8/5
(81)

The base class access specification can be viewed as a filter that base class members must pass through when becoming inherited members of a derived class.

(True/False)
4.8/5
(74)

A base class cannot contain a pointer to one of its derived classes.

(True/False)
4.7/5
(81)
Showing 41 - 60 of 70
close modal

Filters

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