MCQsIntermediate MCQsPolymorphismPolymorphism 1).What is polymorphism in C++?1) Ability to process objects differently based on their type2) Inheritance of base class properties3) A type of memory management4) None of the above 2).What are the two types of polymorphism in C++?1) Static and Dynamic2) Compile-time and Runtime3) Both A and B4) None of the above 3).Which function is used to achieve runtime polymorphism?1) Virtual function2) Static function3) Inline function4) None of the above 4).What is required to make a function in a base class virtual?1) Use the virtual keyword2) Use the static keyword3) Declare the function as private4) None of the above 5).How does C++ implement runtime polymorphism?1) By using vtables and vptr2) Through function overloading3) Using templates4) None of the above 6).What is function overloading?1) Same function name with different parameters2) Multiple classes sharing the same function3) A function calling itself4) None of the above 7).Can constructors be virtual in C++?1) No2) Yes3) Only for abstract classes4) None of the above 8).What is the difference between function overloading and overriding?1) Overloading happens in the same class; overriding happens in inherited classes2) Overriding requires virtual functions3) Both A and B4) None of the above 9).What is the purpose of the 'override' specifier in C++?1) Ensures a function is overriding a base class function2) Marks a function as virtual3) Declares a function as static4) None of the above 10).Can a virtual function in the base class be overridden in the derived class?1) Yes2) No3) Only if declared with final4) None of the above