C++ Programming - OOPS Concepts

Exercise : OOPS Concepts - General Questions
  • OOPS Concepts - General Questions
46.
Which of the following keyword is used to overload an operator?
overload
operator
friend
override
Answer: Option
Explanation:
No answer description is available. Let's discuss.

47.
What will happen if a class is not having any name?
It cannot have a destructor.
It cannot have a constructor.
It is not allowed.
Both A and B.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

48.
Which inheritance type is used in the class given below?
class A : public X, public Y
{}
Multilevel inheritance
Multiple inheritance
Hybrid inheritance
Hierarchical Inheritance
Answer: Option
Explanation:
No answer description is available. Let's discuss.

49.
Which one of the following is correct about the statements given below?
  1. All function calls are resolved at compile-time in Procedure Oriented Programming.
  2. All function calls are resolved at compile-time in OOPS.
Only II is correct.
Both I and II are correct.
Only I is correct.
Both I and II are incorrect.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

50.
Which of the following is an invalid visibility label while inheriting a class?
public
private
protected
friend
Answer: Option
Explanation:
No answer description is available. Let's discuss.