Vidyalelo
Python · Q15

Files Handling in Python

Programming · Python · question 15

Q15

Which of the following statements are true?

A.
When you open a file for reading, if the file does not exist, an error occurs
B.
When you open a file for writing, if the file does not exist, a new file is created
C.
When you open a file for writing, if the file exists, the existing file is overwritten with the new file
D.
All of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board