Q. Which file mode should you use to avoid overwriting an existing file?

  • (A) w
  • (B) x
  • (C) r
  • (D) a
πŸ’¬ Discuss
βœ… Correct Answer: (B) x
Explanation: 'x' mode raises an error if the file already exists.
Explanation by: Mr. Dubey
'x' mode raises an error if the file already exists.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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