1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. In C++, cout is an object of which class?

Added 30 Nov -0001

In C++, cout is an object of which class?

  1. iostream
  2. ostream Correct answer
  3. istream
  4. fstream

Correct answer

B. ostream

10 views

MCQSEXAM

Explanation

cout is a predefined object of class ostream that writes to standard output.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C++ and Object-Oriented Programming MCQs

Practise all C++ and Object-Oriented Programming MCQs

Similar MCQs