Exam 4: Inheritance and Class Hierarchies
Exam 1: P A C++ Primer25 Questions
Exam 2: Introduction to Software Design24 Questions
Exam 3: Program Correctness and Efficiency25 Questions
Exam 4: Inheritance and Class Hierarchies25 Questions
Exam 5: Sequential Containers25 Questions
Exam 6: Stacks24 Questions
Exam 7: Queues and Deques25 Questions
Exam 8: Recursion25 Questions
Exam 9: Trees25 Questions
Exam 10: Sets and Maps25 Questions
Exam 11: Sorting25 Questions
Exam 12: Self-Balancing Search Trees25 Questions
Exam 13: Graphs25 Questions
Exam 14: Advanced C++ Topics, and Overview of UML25 Questions
Select questions type
If the execution of any constructor in a derived class does not invoke a base class constructor, C++ automatically invokes the no-parameter constructor for the __________ class.
(Multiple Choice)
4.8/5
(37)
In general, it is better to use __________ visibility, because derived classes may be written by different programmers, and it is always a good practice to restrict and control access to the base-class data fields.
(Multiple Choice)
4.8/5
(41)
A Ford Model-T automobile is in a "has-a" relationship with __________.
(Multiple Choice)
4.8/5
(44)
If a member function is declared __________, then when it is called through a pointer (or reference) variable the actual member function will be determined at run time and based on the type of the object pointed to (or referenced).
(Multiple Choice)
4.9/5
(36)
Suppose two Clock class functions named get_military_time use the following headers:
Std::string get_military_time (int hours, int minutes);
Std::string get_military_time (int hours, int minutes, int seconds);
The get_military__time member function is said to be __________.
(Multiple Choice)
4.7/5
(42)
Showing 21 - 25 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)