• OOPS Concepts - General Questions
36. 

Which of the following is correct about the statements given below?

  1. All operators can be overloaded in C++.
  2. We can change the basic meaning of an operator in C++.

A. Only I is true.
B. Both I and II are false.
C. Only II is true.
D. Both I and II are true.

37. 

What happens if the base and derived class contains definition of a function with same prototype?

A. Compiler reports an error on compilation.
B. Only base class function will get called irrespective of object.
C. Only derived class function will get called irrespective of object.
D. Base class object will call base class function and derived class object will call derived class function.

38. 

Which of the following are available only in the class hierarchy chain?

A. Public data members
B. Private data members
C. Protected data members
D. Member functions

39. 

Which of the following is not a type of inheritance?

A. Multiple
B. Multilevel
C. Distributive
D. Hierarchical

40. 

Which of the following operators cannot be overloaded?

A. []
B. ->
C. ?:
D. *