CBSE Class 12 Computer Science Question 66 of 145

File Handling — Question 1

Back to all questions
1
Question

Question 1

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

Answer

True

Reason — When a file is opened for reading using r mode (text files) or rb mode (binary files), if the file does not exist, Python raises an error.