Q. Which file mode is used to read and write both?
β
Correct Answer: (B)
r+
Explanation: The 'r+' mode opens the file for both reading and writing.