Filters
Question type

Study Flashcards

In object-oriented design, we debug ____________________; in structured programming, we debug functions.

Correct Answer

verifed

verified

In protected inheritance, public and protected members of the base class become the protected members of the derived class.

A) True
B) False

Correct Answer

verifed

verified

In the case of composition, the ____________________ name is used to invoke the constructor.

Correct Answer

verifed

verified

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 ____.


A) classD::functionName() ;
B) classB::functionName() ;
C) classD.functionName() ;
D) classB.functionName() ;

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

The term ____________________ is used to describe the ability to create new objects from existing objects.

Correct Answer

verifed

verified

In C++, we implement ADT through the use of ____________________.

Correct Answer

verifed

verified

To define new classes in C++, you create new ____________________ files.

Correct Answer

verifed

verified

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


A) Inheritance
B) Encapsulation
C) Polymorphism
D) Composition

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer