OOPS Concepts

Q1:
cout is a/an __________ .

A operator

B function

C object

D macro

ANS:A - operator

We have already known operator means it will be performed some kind of operations between two are more operands. likewise here ,,"cout " perform an input operation by using the symbol ">>" but the same time it is an object.

How it is possible?

Because cout is a object for (derived class or sub class) ostream .and it's main class is "iostream.h" so the answer is (c) OBJECT.  



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.