Exam 13: Object-Oriented Programming: Polymorphism
Exam 1: Introduction to Computers, the Internet and the World Wide Web27 Questions
Exam 2: Introduction to C Programming21 Questions
Exam 3: Control Statements, Part 127 Questions
Exam 4: Control Statements, Part 228 Questions
Exam 5: Functions and an Introduction to Recursion47 Questions
Exam 6: Arrays and Vectors19 Questions
Exam 7: Pointers and Pointer-Based Strings28 Questions
Exam 8: Sequential-Access Files12 Questions
Exam 9: Classes35 Questions
Exam 10: Classes: a Deeper Look, Part 215 Questions
Exam 11: Operator Overloading; String and Array Objects32 Questions
Exam 12: Object-Oriented Programming: Inheritance19 Questions
Exam 13: Object-Oriented Programming: Polymorphism23 Questions
Exam 14: Templates13 Questions
Exam 15: Stream Inputoutput33 Questions
Exam 16: Exception Handling24 Questions
Exam 17: File Processing11 Questions
Exam 18: Class String and String Stream Processing26 Questions
Exam 19: Searching and Sorting10 Questions
Exam 20: Data Structures19 Questions
Exam 21: Standard Template Library Stl56 Questions
Exam 22: Bits, Characters, C Strings and Structs26 Questions
Exam 23: Boost Libraries, Technical Report 1 and C0x21 Questions
Exam 24: Other Topics19 Questions
Exam 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml15 Questions
Exam 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design3 Questions
Exam 27: Game Programming With Ogre23 Questions
Select questions type
Run-time type information can be used to determine:
Free
(Multiple Choice)
4.8/5
(46)
Correct Answer:
C
Which of the following assignments would be a compilation error?
Free
(Multiple Choice)
4.9/5
(50)
Correct Answer:
B
The main difference between a pure virtual function and a virtual function is:
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
C
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:
(Multiple Choice)
4.8/5
(46)
Problems using switch logic to deal with many objects of different types do not include:
(Multiple Choice)
4.8/5
(41)
The line:
Virtual double functionX) const = 0;
In a class definition indicates that the class is probably a:
(Multiple Choice)
4.8/5
(41)
The C++ compiler makes objects take up more space in memory if they:
(Multiple Choice)
4.9/5
(34)
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.8/5
(34)
Which of the following statements about virtual functions is false?
(Multiple Choice)
4.9/5
(33)
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);
(Multiple Choice)
4.8/5
(37)
Concrete classes that inherit virtual functions but do not override their implementations:
(Multiple Choice)
4.9/5
(41)
The line:
Virtual double earnings) const = 0;
Appears in a class definition. You cannot deduce that:
(Multiple Choice)
5.0/5
(38)
The __________ operator returns a reference to a __________ object:
(Multiple Choice)
4.9/5
(41)
Showing 1 - 20 of 23
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)