Polymorphism – MCQs

30 Score: 0 Attempted: 0/30 Subscribe
1. : What is the concept of polymorphism in C++?





2. : Which type of polymorphism is resolved during compile time?





3. : Which mechanism is used to implement runtime polymorphism?





4. : What is required in the base class to achieve runtime polymorphism?





5. : Which keyword is used to prevent further overriding of a function?





6. : Which of the following best describes function overloading?





7. : Polymorphism helps in:





8. : Which of the following is NOT a type of polymorphism in C++?





9. : What does late binding mean?





10. : Which keyword ensures a function is not overridden in derived classes?





11. : Can constructors be virtual in C++?





12. : Which feature allows the same function to behave differently based on the object calling it?





13. : Virtual functions must be:





14. : What is the default behavior of functions in C++ without the virtual keyword?





15. : Which of the following cannot be overloaded?





16. : What is necessary for dynamic polymorphism to work?





17. : Which operator is commonly used to resolve polymorphic calls?




18. : What is a vtable in C++?





19. : Overriding happens between:





20. : Function overloading is a form of:





21. : What kind of polymorphism is achieved by virtual functions?





22. : Which of the following supports method overriding?





23. : Which keyword must be used in the derived class when overriding a virtual function (C++11 onwards)?





24. : Which kind of polymorphism allows you to call functions of the same name with different parameters?





25. : Which of these supports compile-time polymorphism?





26. : Which function is used to destroy objects polymorphically?





27. : What does the virtual keyword signify in a class member function?





28. : What allows a base pointer to call derived class methods in C++?





29. : Which of the following is NOT an example of polymorphism?





30. : What does polymorphism enable in object-oriented programming?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials