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-XIII)

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

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




Multiple choice questions in C++ (With answers)

121. Operator overloading is
a) making c++ operators work with objects
b) giving c++ operators more than they can handle
c) giving new meaning to existing c++ operators
d) making new c++ operators

122. To convert from a user defined class to a basic type, you would most likely use
a) a built-in conversion function
b) a one-argument constructor
c) an overloaded-operator
d) a conversion function that’s member of the class

123. The members of a class
a) by default are public
b) by default are private
c) are made private by declaring as private
d) none of the above]

124. The following symbol indicates the derived class is derived from the base class
a) ::
b) :
c) ->
d) none of the above

125. When a base class publicly inherited
a) the public members of the base class are inherited as private
b) the private members are inherited as private
c) the protected members are inherited as protected
d) none of the above

126. When a base class is privately inherited by derived class
a) the public members of the base class becomes the private members of the derived class
b) the private members are not inherited
c) the protected members of the base class becomes the private members of the derived class
d) All of the above

127. Only one copy of the class is inherited, when it is defined as
a) virtual
b) static
c) public
d) none of the above

128. A class that acts only as a base class and is not used to create objects is
a) parent class
b) super class
c) abstract class
d) none of the above

129. The version of a virtual function actually gets called during runtime is based solely up in the type of the object that is
a) being instantiated and processed by the function
b) in the derived class
c) being pointed to by a base class pointer
d) being passed to the function

130. In multiple inheritance, the base classes are constructed
a) in the order of declaration in the derived class
b) in the order of declaration in the program.
c) in the order of definition of a class
d) none of the above




Solution Set to Multiple Choice Questions

(121)      C          (122)      D          (123)      B          (124)      B

(125)      C          (126)      D          (127)      A          (128)      C

(129)      C          (130)      A         



Comments are closed
x Close

Like Us On Facebook

You cannot copy content of this page.