Exit Quiz
Question 1 of 6
1
of 6
What happens when you open a file in write ("w") mode?
Select one answer
The file is opened for reading only.
A new file is created, or an existing file is overwritten.
Data is added to the end of an existing file.
The file is deleted.
Think about whether "w" mode adds or replaces content.
Need a hint?
Check