Q. Which file mode creates a new file and allows writing?

  • (A) x
  • (B) r+
  • (C) a+
  • (D) r
πŸ’¬ Discuss
βœ… Correct Answer: (A) x
Explanation: The 'x' mode is used to create a new file and open it for writing.
Explanation by: Mr. Dubey
The 'x' mode is used to create a new file and open it for writing.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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