Exam 11: More About Classes and Object-Oriented Programming
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees38 Questions
Select questions type
If you do not furnish a(n) ________ for a class, a default will be provided for you by the compiler.
Free
(Multiple Choice)
5.0/5
(34)
Correct Answer:
D
You may overload any C++ operator, and you may use the operator function to define non-standard operators, such as @ and ^.
Free
(True/False)
4.9/5
(34)
Correct Answer:
False
Some C++ operators cannot be overloaded by the programmer.
Free
(True/False)
4.9/5
(34)
Correct Answer:
True
If a member variable is declared ________, all objects of that class share access to that variable.
(Multiple Choice)
4.7/5
(35)
By default, when an object is assigned to another, each member of one object is copied to its counterpart in the other object.
(True/False)
4.9/5
(33)
A constructor that takes a single parameter of a type other than its class is called a convert constructor.
(True/False)
4.8/5
(37)
The this pointer is a special built-in pointer that is automatically passed as a hidden argument to all instance member functions.
(True/False)
4.8/5
(22)
The base class's ________ affects the way its members are inherited by the derived class.
(Multiple Choice)
4.8/5
(36)
If you overload the prefix ++ operator, the postfix ++ operator is automatically overloaded also.
(True/False)
4.8/5
(33)
A derived class may become a base class, if another class is derived from it.
(True/False)
4.8/5
(30)
To overload the + operator, you would write a function called
(Multiple Choice)
4.9/5
(35)
In the statement class Car:public Vehicle, which is the base class?
(Multiple Choice)
4.7/5
(34)
________ allows us to create new classes based on existing classes.
(Multiple Choice)
4.8/5
(43)
The ________ is a special built-in pointer that is available to a class's instance member functions.
(Multiple Choice)
4.9/5
(34)
A static member function cannot be called if no objects of the class exist.
(True/False)
4.9/5
(37)
A member function that is declared ________ cannot use the this pointer.
(Multiple Choice)
4.8/5
(32)
Protected members of a base class are like ________, with the exception that they may be accessed by derived classes.
(Multiple Choice)
4.9/5
(24)
Showing 1 - 20 of 70
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)