--:--









Quiz for Runtime polymorphism

Course: C++ Language | Subject: Unit 7 | Topic: Polymorphism



Logo

Q1: What is runtime polymorphism?

Logo

Q2: Which keyword enables runtime polymorphism in C++?

Logo

Q3: What is necessary for runtime polymorphism to work?

Logo

Q4: How does C++ achieve runtime polymorphism?

Logo

Q5: Can constructors be virtual?

Logo

Q6: What happens when a base class pointer calls a virtual function?

Logo

Q7: Which of these is an example of runtime polymorphism?

Logo

Q8: What type of binding does runtime polymorphism use?

Logo

Q9: What will happen if a base class function is not declared virtual?

Logo

Q10: How can runtime polymorphism improve software design?

Logo

Q11: Which of these must be true for a function to support runtime polymorphism?

Logo

Q12: Can runtime polymorphism be achieved without inheritance?

Logo

Q13: What is a pure virtual function?

Logo

Q14: What is the effect of declaring a class abstract?

Logo

Q15: Why use virtual destructors?

Logo

Q16: What is the vtable?

Logo

Q17: Which of these is a disadvantage of runtime polymorphism?

Logo

Q18: Can runtime polymorphism be used with non-pointer objects?

Logo

Q19: What happens if a derived class does not override a virtual function?

Are you ready to start test? Set your time limit