aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming (C/C++)
  • What is a proper method of opening a file for writing as ...
Multiple choice

What is a proper method of opening a file for writing as a binary file?

  1. FILE *f = fwrite( test.bin, b );

  2. FILE *f = fopen ( test.bin, w );

  3. FILE *f = fopen( test.bin, wb );

  4. FILE *f = fwriteb( test.bin );

  5. FILE *f = fopen( test.bin, bw );

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • Which of the following mode of fopen() function opens a file only for writing. If a file with that name doe...
  • Which of the following mode of fopen() function opens a file only for writing. If a file with that name doe...
  • Which of the following functions is used to write the contents of the binary file associated with ofstream ...
  • It is possible to write the simple types directly to a binary file using the methods in the FileStream class.
  • Which of the following file opening modes in C is/are invalid?
  • What mode the file should be opened,if it should be Rewritten?
  • In which of the following mode should a file be opened to write a record into it?
  • What is the mode in which you will OPEN a file for writing?
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