Q. If you want to write to a file but avoid overwriting existing content, which mode should you use?

  • (A) w
  • (B) r
  • (C) a
  • (D) x
πŸ’¬ Discuss
βœ… Correct Answer: (C) a
Explanation: 'a' mode appends data to the file without deleting existing content.
Explanation by: Mr. Dubey
'a' mode appends data to the file without deleting existing content.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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