CBSE Class 12 Computer Science Question 56 of 136

Data File Handling — Question 21

Back to all questions
21
Question

Question 21

Which of the following modes is used for both writing and reading from a binary file?

  1. wb+
  2. w
  3. wb
  4. w+
Answer

wb+

Reason — 'wb+' mode is used for both writing and reading from a binary file.