Sail E0 Webinar

MCQs

Total Questions : 13 | Page 2 of 2 pages
Question 11. How many groups of output of operation are there in c++?
  1.    1
  2.    2
  3.    3
  4.    4
 Discuss Question
Answer: Option B. -> 2


There are two groups of output operation in c++. They are formatted output and unformatted output.


Question 12. Pick out the correct objects about the instantiation of output stream.
  1.    cout
  2.    cerr
  3.    clog
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


cout, cerr and clog are the standard objects for the instantiation of output stream class.


Question 13. What is meant by ofstream in c++?
  1.    Writes to a file
  2.    Reads from a file
  3.    Both a & b
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Writes to a file


ofstream is a stream class to write on files.


Latest Videos

Latest Test Papers