The content of file will be lost if it is opened in
(A) w mode
(B) w+ mode
(C) a mode
(D) a+ mode
Correct option - (A) w mode
Explanation:-
When the mode is writing, the contents are deleted and the file is opened as a new file.