aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ File Handling
  • Which of the following is the invalid open mode of a file...
Multiple choice

Which of the following is the invalid open mode of a file in C++?

  1. In

  2. out

  3. app

  4. ale

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

The open mode in, out and ate are the valid modes for reading, writing and appending respectively. There is no any ale mode in C++. 

Keep practicing — related questions

  • Which of the following file opening modes in C is/are invalid?
  • Which file open mode option throws error?
  • Which of the following modes of the open() function in C++ file handling defines that all the output to the...
  • Which of the following file opening modes shows error, if the file does not already exist?
  • Which of the following is the default mode for a open() member function of fstream class?
  • 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?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Computer File Systems (1249 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy