Interview Questions on Inheritance in C++ : (10)
Question: 1
(A) XY~X~Y
(B) XY~Y~X
(C) X~XY~Y
(D) X~X~YY
Compiler
Level: Expert Category: inheritance
[Posted by: | ]
Question: 2
(A) 1
(B) 2
(C) 3
(D) 4
Compiler
Level: Beginner Category: inheritance
[Posted by: | ]
Question: 3
(A) TRUE
(B) FALSE
Compiler
Level: Beginner Category: inheritance
[Posted by: | ]
Question: 4
(A) Polymorphism
(B) Inheritance
(C) Function overloading
(D) None of these
Compiler
Level: Practitioner Category: inheritance
[Posted by: | ]
Question: 6
(A) True
(B) False
Compiler
Level: Beginner Category: inheritance
[Posted by: | ]
Question: 7
(A) Car
(B) Vehicle
(C) protected
(D) None
Compiler
Level: Beginner Category: inheritance
[Posted by: | ]
Question: 8
Question: 9
Question: 10
(A) base
(B) Nothing is printed
(C) basebase
(D) None of the Above
Compiler
Level: Practitioner Category: inheritance
[Posted by: | ]
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++11 C++17 C++20 Time & Space Complexity othersSwitch to C Questions