Exam 14: More About Classes
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
When objects contain pointers, it is a good idea to create an explicit ________ function.
(Multiple Choice)
4.9/5
(75)
If you do not furnish one of these a default will be provided for you by the compiler.
(Multiple Choice)
4.8/5
(77)
The this pointer is a special built-in pointer that is automatically passed as a hidden argument to all non-static member functions.
(True/False)
4.9/5
(85)
You may overload any C++ operator, and you may use the operator function to define non-standard operators, such as @ and ^.
(True/False)
4.8/5
(81)
If you do not furnish one of these, an automatic memberwise copy will be performed when one object is assigned to another object.
(Multiple Choice)
4.9/5
(82)
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.7/5
(79)
This type of function is not a member of a class, but it has access to the private members of the class.
(Multiple Choice)
4.9/5
(86)
The this pointer is automatically passed to non-static member functions of a class.
(True/False)
5.0/5
(68)
This is a special function that is called whenever a new object is created and initialized with another object's data.
(Multiple Choice)
4.9/5
(83)
It is a good idea to make a copy constructor's parameters __________ by specifying the _________ keyword in the parameter list.
(Multiple Choice)
4.8/5
(77)
In C++, if you overload the < operator, you must also overload the > operator.
(True/False)
4.7/5
(89)
In the following function header, FeetInches FeetInches::operator++(int)
The word (int) is known as a:
(Multiple Choice)
4.7/5
(85)
When you redefine the way a standard operator works when it is used with class objects, you have ____________ the operator.
(Multiple Choice)
4.8/5
(80)
When you overload an operator, you cannot change the number of ________ taken by the operator.
(Multiple Choice)
4.9/5
(75)
A(n) ___________ informs the compiler that a class will be declared later in the program.
(Multiple Choice)
4.8/5
(85)
A static member variable can be used when there are no objects of the class in existence.
(True/False)
4.8/5
(64)
If a member variable is declared ____________, all objects of that class have access to that variable.
(Multiple Choice)
4.9/5
(71)
When you overload the << operator, you must also overload the >> operator.
(True/False)
4.7/5
(73)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)