Q. What happens if you open a file in 'w' mode that already exists?
β
Correct Answer: (C)
It deletes the existing file content
Explanation: Opening in 'w' mode erases existing contents of the file.