Exam 15: Polymorphism and Virtual Functions
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 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 Trees37 Questions
Select questions type
To indicate that a member function of a class is pure virtual,
Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
C
In C++, polymorphism is very difficult to achieve unless you also use inheritance.
Free
(True/False)
4.7/5
(38)
Correct Answer:
True
When a virtual member function of a class in a class hierarchy is invoked through a pointer to an object in the class hierarchy, the compiler will select the member function to be invoked
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
A
Declaring a member function of a class to be a _ will cause the C++ compiler to use dynamic binding.
(Multiple Choice)
4.9/5
(29)
to a base class may be assigned the address of a derived class object.
(Multiple Choice)
4.9/5
(37)
Polymorphism is when in a class hierarchy perform differently, depending upon the class of the object making the call.
(Multiple Choice)
4.8/5
(43)
Static binding occurs when the compiler binds a function call at compile time.
(True/False)
4.9/5
(38)
A virtual function is declared by placing the keyword in front of the return type in the base class's function declaration.
(Multiple Choice)
4.9/5
(51)
Pointers to a base class may be assigned the address of a derived class object.
(True/False)
4.8/5
(33)
When more than one class is derived from a base class, the situation is called
(Multiple Choice)
4.9/5
(42)
An abstract class is somewhat restricted in how it can be used because
(Multiple Choice)
4.9/5
(33)
When the compiler binds a call to a member function using only information available at compile time, the compiler is said to use binding.
(Multiple Choice)
4.8/5
(32)
In C++, polymorphism is based on the ability to make member functions of a class
(Multiple Choice)
4.9/5
(34)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)