CBSE Class 12 Computer Science Question 76 of 145

File Handling — Question 11

Back to all questions
11
Question

Question 11

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

Answer

True

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