Exam 12: Object-Oriented Programming: Polymorphism
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
The __________ operator returns a reference to a __________ object:
Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
A
Employee is a base class and HourlyWorker is a derived class, with a redefined non-virtual print function. Given the following statements, will the output of the two print function calls be identical? HourlyWorker h;
Employee *ePtr = &h;
EPtr->print();
EPtr->Employee::print();
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
A
If objects of all the classes derived from the same base class all need to draw themselves, the draw function would most likely be declared:
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
B
[C++11] In C++11, you can tell the compiler to explicitly generate the default version of a default constructor, copy constructor, move constructor, copy assignment operator, move assignment operator or destructor by following the special member function's prototype with ________.
(Multiple Choice)
4.8/5
(39)
Which of the following statements about polymorphism is false?
(Multiple Choice)
4.9/5
(26)
Which of the following statements about virtual functions is false?
(Multiple Choice)
4.9/5
(26)
Problems using switch logic to deal with many objects of different types do not include:
(Multiple Choice)
5.0/5
(34)
The main difference between a pure virtual function and a virtual function is:
(Multiple Choice)
4.9/5
(40)
Which of the following would not be a member function that derived classes Fish, Frog and Bird should inherit from base class Animal and then provide their own definitions for, so that the function call can be performed polymorphically?
(Multiple Choice)
4.7/5
(30)
The line: virtual double functionX() const = 0;
In a class definition indicates that the class is probably a:
(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 27
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)