CBSE Class 12 Computer Science Question 67 of 145

File Handling — Question 2

Back to all questions
2
Question

Question 2

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

Answer

False

Reason — When a file is opened for writing using w mode (text files) or wb mode (binary files), if the file does not exist, file is created.