C++ Programming - OOPS Concepts

Exercise : OOPS Concepts - General Questions
  • OOPS Concepts - General Questions
36.
Which of the following is a mechanism of static polymorphism?
Operator overloading
Function overloading
Templates
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

37.
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++.
Only I is true.
Both I and II are false.
Only II is true.
Both I and II are true.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

38.
What happens if the base and derived class contains definition of a function with same prototype?
Compiler reports an error on compilation.
Only base class function will get called irrespective of object.
Only derived class function will get called irrespective of object.
Base class object will call base class function and derived class object will call derived class function.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

39.
Which of the following are available only in the class hierarchy chain?
Public data members
Private data members
Protected data members
Member functions
Answer: Option
Explanation:
No answer description is available. Let's discuss.

40.
Which of the following is not a type of inheritance?
Multiple
Multilevel
Distributive
Hierarchical
Answer: Option
Explanation:
No answer description is available. Let's discuss.