Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Multiple Choice Questions in C++ (Set-XII)

Multiple Choice Questions in C++ (Set-XII)

March 7, 2021 Comments Off on Multiple Choice Questions in C++ (Set-XII) By MANOJ AGARWAL
Multiple Choice Questions in C++




Multiple choice questions in C++ (With answers)

111. The following feature supports extensibility and reusability of classes
a) function overloading
b) inheritance
c) operator overloading
d) data encapsulation

112. The process of deriving a class from another derived class is
a) single inheritance
b) multilevel inheritance
c) multiple inheritance
d) none of the above

113. When a derived class inherits only from one class and is not further inherited is
a) single inheritance
b) multiple inheritance
c) multilevel inheritance
d) hybrid inheritance

114. When a derived class inherits from may base classes it is
a) multilevel inheritance
b) single inheritance
c) multiple inheritance
d) none of the above

115. Inheritance is ……….. in nature
a) transitive
b) intransitive
c) both (a) & (b)
d) none of the above

116. ……………. variables cannot be declared
a) structure
b) pointer
c) void
d) class

117. When a subclass inherits from multiple base classes, which inherits from a single class, the inheritance type is
a) single inheritance
b) hybrid inheritance
c) multilevel inheritance
d) multiple inheritance

118. When one class inherits from the base class, then the original class is called
a) base class
b) derived class
c) sub class
d) none of the above

119. The default visibility mode while inheriting is
a) private
b) public
c) protected
d) none of the above

120. The class intended to be a base class should use visibility mode as
a) public
b) protected
c) private
d) Both (a) & (b)




Solution Set to Multiple Choice Questions

(111)      B          (112)      B

(113)      A          (114)      C          (115)      A          (116)      C

(117)      B          (118)      A          (119)      A          (120)      D



Comments are closed
x Close

Like Us On Facebook

You cannot copy content of this page.