Exam 12: Adding Functionality to Your Classes
Exam 1: Preliminaries51 Questions
Exam 2: Problem Solving Using C++52 Questions
Exam 3: Assignment, Formatting, and Interactive52 Questions
Exam 4: Selection Structures51 Questions
Exam 5: Repetition Statements50 Questions
Exam 6: Modularity Using Functions50 Questions
Exam 7: Arrays50 Questions
Exam 8: Io Streams and Data Files50 Questions
Exam 9: Completing the Basics50 Questions
Exam 10: Pointers50 Questions
Exam 11: Introduction to Classes50 Questions
Exam 12: Adding Functionality to Your Classes50 Questions
Exam 13: Structures50 Questions
Exam 14: Numerical Methods50 Questions
Select questions type
When overloading the insertion operator to process a Complex object, it s important to understand that you re overloading an operator in the ____ class.
(Multiple Choice)
4.8/5
(39)
In normal function calls, ____________________ binding is used, meaning the determination of which function is called is made at compile time.
(Short Answer)
4.8/5
(29)
In class to class conversion, including a conversion operator function with the second class s name in the first class creates a problem if the second class hasn t been ____________________.
(Short Answer)
4.9/5
(47)
If a base class member has a protected access and the derived class s access specifier is public , the derived class member is ____ to its class.
(Multiple Choice)
4.8/5
(33)
One step in modifying cin to handle the Complex class is to provide access to the Complex class data. This is achieved by declaring the extraction operator function as a(n) ____________________ in the Complex class.
(Short Answer)
4.8/5
(35)
With the introduction of user-defined data types, there are ____ possibilities for conversion between data types.
(Multiple Choice)
4.8/5
(29)
In the absence of a derived class constructor, the compiler automatically calls the default ____________________ class constructor first.
(Short Answer)
4.8/5
(38)
Conversion from a class type to a built-in type is made by using a ____ function.
(Multiple Choice)
4.8/5
(39)
All ____ data members come into existence before any objects are created.
(Multiple Choice)
4.8/5
(34)
A static variable with ____________________ access may be assigned a value or altered by a member function anywhere after the static variable s definition.
(Short Answer)
4.9/5
(34)
Casting from a base to a derived class requires a(n) ____ to initialize the derived class members that aren t in the base class.
(Multiple Choice)
4.7/5
(29)
A nonmember function can access private class data members as a(n) ____.
(Multiple Choice)
4.7/5
(42)
The ____ of an identifier defines the portion of a program where the identifier can be accessed.
(Multiple Choice)
4.8/5
(38)
The function used to overload the ostream insertion operator is referred to as a(n) ____.
(Multiple Choice)
4.8/5
(33)
In the assignment b = a; where a is a user-defined data type and b is a built in type, the conversion to the built in type is ____________________.
(Short Answer)
4.9/5
(37)
The initial class used as the basis for the derived class is referred to as the subclass.
(True/False)
4.9/5
(46)
As each class is defined, it gets its own block of memory for its data members.
(True/False)
4.9/5
(37)
The feature of object-oriented languages called ____________________ allows redefining how member functions of related classes operate, based on the object being referenced.
(Short Answer)
4.9/5
(34)
In multiple inheritance, a derived type has two or more base types.
(True/False)
4.8/5
(38)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)