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

C++ inheritance mcq with answers and explanation. 50% of the objective questions are asked in interviews and rest are to cover C++ inheritance concepts. Q)base class and derived class relationship comes under Inheritance Polymorphism encapsulation None   Answer : A Explanation: Base class and derived class come under inheritance, one of the C++ oops principle.…

Read the full article