adplus-dvertising
frame-decoration

Question

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

Posted under Python

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements are true ?