Multiple choice

Which of the following options is correct for file handling?

  1. Random access file takes less time for reading than a sequential file.

  2. getw() function reads all data types from a file.

  3. Closall() function closes all the opened files in a program.

  4. ofstream is a class to read the data from a file.

  5. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is correct.