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
(34)

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

(Multiple Choice)
4.8/5
(37)

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

(True/False)
4.8/5
(34)

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
(42)

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

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.7/5
(26)

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

(True/False)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(34)

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

(True/False)
4.9/5
(32)

An rvalue is

(Multiple Choice)
4.9/5
(40)

C++ allows you to overload

(Multiple Choice)
4.7/5
(34)

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.8/5
(36)

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

(True/False)
4.7/5
(28)

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

(True/False)
4.8/5
(37)

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

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.9/5
(44)

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

(True/False)
5.0/5
(31)

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
(35)

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
(37)

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

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

Filters

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