CBSE Class 12 Computer Science Question 55 of 145

File Handling — Question 16

Back to all questions
16
Question

Question 16

Which of the following is not a valid mode to open a file ?

  1. ab
  2. rw
  3. r+
  4. w+
Answer

rw

Reason — rw is not a valid mode to open file in Python.