Q. How can you open a file for both reading and appending?
β
Correct Answer: (B)
mode 'a+'
Explanation: 'a+' mode allows reading and appending to the file.