CBSE Class 12 Computer Science Question 54 of 145

File Handling — Question 15

Back to all questions
15
Question

Question 15

Which of the following represents mode of both writing and reading in binary format in file. ?

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

wb+

Reason — wb+ mode represents mode of both writing and reading in binary format in file in Python.