Q. Which of the following opens a file for reading? (A) open('file.txt', 'r') (B) open('file.txt', 'w') (C) open('file.txt', 'a') (D) open('file.txt', 'x') ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) open('file.txt', 'r') Explanation: 'r' mode opens a file for reading.