Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C++ » Questions on Inheritance in C++

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: Admin | Chicago, USA]



Question: 2

(A) 1
(B) 2
(C) 3
(D) 4

Compiler
Level: Beginner Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 3

(A) TRUE
(B) FALSE

Compiler
Level: Beginner Category: inheritance
[Posted by: Andrew | New Jersey]



Question: 4

(A) Polymorphism
(B) Inheritance
(C) Function overloading
(D) None of these

Compiler
Level: Practitioner Category: inheritance
[Posted by: Andrew | New Jersey]



Question: 5

(A) True
(B) False

Compiler
Level: Beginner Category: inheritance
[Posted by: Andrew | New Jersey]



Question: 6

(A) True
(B) False

Compiler
Level: Beginner Category: inheritance
[Posted by: Andrew | New Jersey]



Question: 7

(A) Car
(B) Vehicle
(C) protected
(D) None

Compiler
Level: Beginner Category: inheritance
[Posted by: Andrew | New Jersey]



Question: 8

(A) 100
(B) 0
(C) Compilation Error
(D) Garbage Value is printed

Compiler
Level: Expert Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 9

(A) 08
(B) 04
(C) 84
(D) 48

Compiler
Level: Practitioner Category: inheritance
[Posted by: Admin | Chicago, USA]



Question: 10

(A) base
(B) Nothing is printed
(C) basebase
(D) None of the Above

Compiler
Level: Practitioner Category: inheritance
[Posted by: Admin | Chicago, USA]


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 gcc/g++ others

Switch to C Questions