C++ Programming - OOPS Concepts

Exercise : OOPS Concepts - General Questions
  • OOPS Concepts - General Questions
26.
Which of the following is the correct class of the object cout?
iostream
istream
ostream
ifstream
Answer: Option
Explanation:
No answer description is available. Let's discuss.

27.
Which of the following cannot be used with the keyword virtual?
class
member functions
constructor
destructor
Answer: Option
Explanation:
No answer description is available. Let's discuss.

28.
Which of the following functions are performed by a constructor?
Construct a new class
Construct a new object
Construct a new function
Initialize objects
Answer: Option
Explanation:
No answer description is available. Let's discuss.

29.
Which of the following problem causes an exception?
Missing semicolon in statement in main().
A problem in calling function.
A syntax error.
A run-time error.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

30.
Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.
Inheritance
Polymorphism
Abstraction
Encapsulation
Answer: Option
Explanation:
No answer description is available. Let's discuss.