Exam 11: Inheritance and Composition

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

The ____ members of an object form its external state.

(Multiple Choice)
4.8/5
(36)

A derived class can directly access the protected members of the base class.

(True/False)
4.9/5
(37)

OOP implements ____.

(Multiple Choice)
4.9/5
(34)

Suppose that bClass is a class. Which of the following statements correctly derives the class dClass from bClass?

(Multiple Choice)
4.9/5
(38)

If inheritance is private, all members of the base class, including private members, become private members of the derived class.

(True/False)
4.8/5
(28)

In ____________________ (aggregation), one or more members of a class are objects of another class type.

(Short Answer)
4.7/5
(34)

In multiple inheritance, the derived class has more than one base class.

(True/False)
4.9/5
(39)

In OOD, a program is a collection of interacting ____________________; in structured programming, a program is a collection of interacting functions.

(Short Answer)
4.8/5
(31)

If the derived class classD overrides a public member function functionName of the base class classB, then to specify a call to that public member function of the base class, you use the statement ____.

(Multiple Choice)
4.8/5
(40)

Which of the following is true about inheritance?

(Multiple Choice)
4.9/5
(25)

The ____ members of an object form its internal state.

(Multiple Choice)
4.8/5
(39)

What is the output of the following program? What is the output of the following program?

(Multiple Choice)
4.9/5
(34)

Inheritance is an example of a(n) ____ relationship.

(Multiple Choice)
4.9/5
(30)

____ is a "has-a" relationship.

(Multiple Choice)
4.7/5
(45)

Existing classes, from which you create new classes, are called ____ classes.

(Multiple Choice)
4.8/5
(39)

____ is the ability to combine data, and operations on that data, in a single unit.

(Multiple Choice)
4.8/5
(32)

____ is the ability to use the same expression to denote different operations.

(Multiple Choice)
4.8/5
(35)

Classes can create new classes from existing classes. This important feature ____.

(Multiple Choice)
4.8/5
(37)

The preprocessor directive ____________________ is used to prevent multiple inclusions of a header file in a program.

(Short Answer)
4.8/5
(30)

The class io is the base class of the C++ stream classes istream and ostream.

(True/False)
4.8/5
(40)
Showing 21 - 40 of 41
close modal

Filters

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