Exercise: Oops Concepts

Questions for: Oops Concepts

Which of the following problem causes an exception?
A:
Missing semicolon in statement in main().
B:
A problem in calling function.
C:
A syntax error.
D:
A run-time error.
Answer: D
No answer description is available. Let's discuss.
Which of the following functions are performed by a constructor?
A:
Construct a new class
B:
Construct a new object
C:
Construct a new function
D:
Initialize objects
Answer: D
No answer description is available. Let's discuss.
Which of the following cannot be used with the keyword virtual?
A:
class
B:
member functions
C:
constructor
D:
destructor
Answer: C
No answer description is available. Let's discuss.
Which of the following is the correct class of the object cout?
A:
iostream
B:
istream
C:
ostream
D:
ifstream
Answer: C
No answer description is available. Let's discuss.
Which of the following operator is overloaded for object cout?
A:
>>
B:
<<
C:
+
D:
=
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz