πŸ“Š Python
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')
πŸ’¬ Discuss
βœ… Correct Answer: (A) open('file.txt', 'r')

Explanation: 'r' mode opens a file for reading.

Explanation by: Mr. Dubey
'r' mode opens a file for reading.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
41
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate