inheritance

Ques:- The default visibility mode while inheriting members of a base class is ____
A. Extended public
B. Public
C. Protected
D. Private

0 6317
Ques:- Single, multiple, multilevel, hybrid and hierarchical are all types of ____
A. Overloading
B. Encapsulation
C. Inheritance
D. Polymorphism

0 2025
Ques:- When a class is inherited by public visibility mode the public members of base class are derived as ____ of derived class.
A. Public members
B. Protected members
C. Private members
D. None

0 1728
Ques:- Classes used only for deriving other classes are called ___
A. Abstract classes
B. Derived classes
C. Public classes
D. Objects

0 6154
Ques:- A derived class that inherits from multiple base class is known as ____
A. Single inheritance
B. Multiple inheritance
C. Multilevel inheritance
D. Hybrid inheritance

0 4466
Ques:- The process of creating new data types from existing data type is called as ____
A. Encapsulation
B. Overloading
C. Polymorphism
D. Inheritance

0 4277
Ques:- In inheritance, protected members of base class are inherited as ____ when private access specifier is used.
A. Public members
B. Private members
C. Protected members
D. Not inherited at all

0 7202
Ques:- Reusability of code, code sharing, consistency of interface are all advantages of ____
A. Encapsulation
B. Inheritance
C. Polymorphism
D. Overloading

0 8056
Ques:- The class created from an existing base class is called ___
A. Second class
B. New class
C. Derived class
D. Rich class

0 3370
Ques:- The class from which the other classes are derived is called as ____
A. Objects
B. Functions
C. Sub-class
D. Object class

0 2161
Ques:- Which is the base class of the class heavy_vehicle?
A. Bus
B. Heavy_vehicle
C. Vehicle
D. Both (a) and (c)

0 8078
Ques:- Private, public and protected are all ____
A. Access specifiers
B. C++ variables
C. Control structures of C++
D. Derived class members

0 1102
Ques:- Which is not inherited from the base class?
A. Data members
B. Constructor
C. Function
D. Object

0 6271
Ques:- When a sub class inherits only from one base class, it is known as ___
A. Single inheritance
B. Double inheritance
C. Hierarchical inheritance
D. None

0 4057
Ques:- In inheritance, the newly created classes are ___
A. Function
B. Super class
C. Derived class
D. Base class

0 3653
Scroll to top