Q. Which mode is used to write to a file, creating it if it doesn't exist?

  • (A) r
  • (B) w
  • (C) x
  • (D) a
πŸ’¬ Discuss
βœ… Correct Answer: (B) w
Explanation: The 'w' mode writes to a file and creates it if not present.
Explanation by: Mr. Dubey
The 'w' mode writes to a file and creates it if not present.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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