πŸ“Š Python
Q. How can you open a file for both reading and appending?
  • (A) mode 'ra'
  • (B) mode 'a+'
  • (C) mode 'r+'
  • (D) mode 'w+'
πŸ’¬ Discuss
βœ… Correct Answer: (B) mode 'a+'

Explanation: 'a+' mode allows reading and appending to the file.

Explanation by: Mr. Dubey
'a+' mode allows reading and appending to the file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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