aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Object Oriented Programming Fundamentals
  • If you want to open a file from initial position to the e...
Multiple choice

If you want to open a file from initial position to the end of file, then which of the following modes is used?

  1. ios:app

  2. ios:trunc

  3. ios:ate

  4. ios:out

  5. ios:in

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

This mode is used for initial position to end of file.

Keep practicing — related questions

  • Opening a file in ios::out mode also opens it in the __________ mode by default.
  • Which of the following file modes is used in file handling, if an already existing file is to be opened for...
  • Which of the following files modes is used to open a file for reading only?
  • Which of the following is not a file mode parameter used with open() function?
  • Normally a file is opened with positioning the cursor at the beginning of the file. But which mode opens th...
  • The ____________ file mode is used in C++ to write all the data at the end of the file.
  • 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?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy