Q. Which file mode creates a new file and allows writing?
β
Correct Answer: (A)
x
Explanation: The 'x' mode is used to create a new file and open it for writing.