Question 92Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Match the following file stream classes in C++ with its functions.

Match the following file stream classes in C++ with its functions. A. Fstream base — i. Provides support for simultaneous input and output operation B. If stream — ii. Provides output operation C. Of stream — iii. Provides operations common to file streams D. F stream — iv. Provides input operation
  1. AA-i, B-ii, C-iv, D-iii
  2. BA-iv, B-iii, C-i, D-ii
  3. CA-i, B-iii, C-iv, D-ii
  4. DA-iii, B-iv, C-ii, D-i
Show answerHide answer

Correct answer: (D) A-iii, B-iv, C-ii, D-i

Explanation

fstreambase provides operations common to file streams, ifstream gives input, ofstream gives output, and fstream supports simultaneous input and output.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 92 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.