Exam 11: Inheritance and Composition
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures II Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
A derived class can directly access the protected members of the base class.
(True/False)
4.9/5
(37)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)