Category: MCQ-C++

C++ MCQ – multiple choice questions with answers and explanation on various topics in C++ OOPs written job interviews

MCQs – C++ Virtual Concepts

MCQ on virtual function, VPTR, VTABLE and destructors etc. for interview exams preparation. These multiple-choice questions on virtual concepts contain the answer and explanation.   Q) Which concept is not available in C++? Virtual constructor Virtual destructor Virtual function Virtual Table   Q) What is output of the following C++ program?   A::f() A::f() A::f()…

Read the full article

MCQs – C++ Polymorphism

Q) Compile time polymorphism in C++ language are Operator overloading Function overloading Function overriding B Only A & B   Q) C++ abstract class can contain Pure virtual function Non-virtual function Only pure virtual function Both pure virtual and non-virtual function Q) False statements about function overloading is Defining multiple functions with same name in…

Read the full article

MCQs – C++ OOPs

Q) The OOPs concept in C++, exposing only necessary information to users or clients is known as Abstraction Encapsulation Data hiding Hiding complexity   Q) Which of the following is an abstract data type? Class Int String Double Q) Hiding the complexity is known as Abstraction Encapsulation Data hiding Composition Q) For Cat and Animal…

Read the full article

MCQs – C++ Inheritance

Q) base class and derived class relationship comes under Inheritance Polymorphism encapsulation None     Q) C++ Inheritance relationship is Association Is-A Has-A None Q) Types of inheritance in C++ are Multilevel Multiple Hierarchical All the above Q) Inheritance allow in C++ Program? Class Re-usability Creating a hierarchy of classes Extendibility All