CBSE Class 12 Computer Science Question 56 of 145

File Handling — Question 17

Back to all questions
17
Question

Question 17

Which of the following mode in file opening statement results or generates an error if the file does not exist ?

  1. a+
  2. r+
  3. w+
  4. None of these
Answer

r+

Reason — r+ mode in file opening statement results or generates an error if the file does not exist.