Which of the following statements are true regarding the opening modes of a file?

When you open a file for reading, if the file does not exist, an error occurs

When you open a file for writing, if the file does not exist, an error occurs

When you open a file for reading, if the file does not exist, the program will open an empty file

When you open a file for writing, if the file does not exist, a new file is created

Correct Option - ade

To get all Infosys Certified Python Associate Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in