CBSE Class 12 Computer Science Question 121 of 136

Data File Handling — Question 9

Back to all questions
9
Question

Question 9

Opening a file in append mode erases the previous data.

Answer

False

Reason — Opening a file in append mode 'a' for text files or 'ab' for binary files does not erase the previous data. Instead, it allows data to be added to the end of the file without overwriting or erasing existing content.