C++ Programming Test By Kishor Raut - August 21, 2021 FacebookTwitterPinterestWhatsApp Welcome to your C++ Programming Test 1. Run time type identification comes at a cost of performance penalty.A. TrueB. False 2. Which of the following statement is not correct about function overiding?A. Function overriding cannot be done within a class.B. Overriden function must have same return type and same parameter list.C. A function can be overriden only once.D. Static function cannot be overriden. 3. What will be the output of following code? #include using namespace std; class Base { public: void show() { cout << "Base"; } }; class Derived:public Base { public: void show() { cout << "Derived"; } }; int main() { Base* b; Derived d; b = &d; b->show(); return 0; }A. BaseB. DerivedC. Base DerivedD. error 4. Virtual Keyword is used to make a member function of the _________ class Virtual?A. BaseB. Derived 5. Choose the correct statement?A. Abstract class can be instantiated.B. Abstract class cannot have normal functions.C. Abstract class is a class which contains atleast one Pure Virtual function in it.D. Abstract class cannot be inherited 6. Which of the following is a correct way to declare Pure Virtual function?A. virtual void show();B. virtual void show() = 0;C. virtual void show(){};D. virtual void show() = pure; 7. What will be the output of following code? #include using namespace std; class Base { public: ~Base() {cout << "Base Destructor"; } }; class Derived:public Base { public: ~Derived() { cout<< "Derived Destructor"; } }; int main() { Base* b = new Derived; delete b; return 0; }A. ErrorB. Base DestructorC. Derived Destructor Base DestructorD. Derived Destructor 8. Pure Virtual Destructors also exist in C++?A. trueB. false 9. The address of the virtual Function is placed in the _________ .A. HeapB. MemoryC. VTableD. Register 10. Constructors can also be Virtual. True or False?A. TrueB. False 11. Which feature allows you to create a Derived class that inherits properties from more than one Base class?A. Multilevel Inheritance.B. Multiple Inheritance.C. Hybrid Inheritance.D. Hierarchical Inheritance. 12. Which feature in Object Oriented Programming allows reusing code?A. PolymorphismB. InheritanceC. EncapsulationD. Data hiding 13. A function that changes the state of the cout object is called _______?A. a Member functionB. an Adjuster functionC. a Manipulator functionD. an Operator function 14. What does C++ append to the end of a string literal constant?A. A space.B. A number sign (#).C. An asterisk (*).D. A null character. 15. An array element is accessed using _______ .A. A first-in-first-out approach.B. The dot operator.C. A member name.D. An index number. Time is Up!