aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ File Handling
  • Which of the following is the default mode for a open() m...
Multiple choice

Which of the following is the default mode for a open() member function of fstream class?

  1. ios::in

  2. ios::out

  3. ios::app

  4. ios::in | ios::out

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

The default mode for a open() member function of fstream class is ios::in | ios::out. 

Keep practicing — related questions

  • Which of the following classes in C++ supports output operations and contains open() function with default ...
  • Which of the following modes of the open() function in C++ file handling defines that all the output to the...
  • Which of the following is not a file mode parameter used with open() function?
  • Opening a file in ios::out mode also opens it in the __________ mode by default.
  • Which of the following files modes is used to open a file for reading only?
  • Which of the following is the invalid open mode of a file in C++?
  • Which of the following file modes is used in C++ if the user has to turn down opening when the file already...
  • Which of the following program codes is correct for opening a file in append mode that sets the write point...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy