πŸ“Š Python
Q. Which exception is raised if you try to read from a file opened in 'w' mode?
  • (A) IOError
  • (B) ValueError
  • (C) UnsupportedOperation
  • (D) FileNotFoundError
πŸ’¬ Discuss
βœ… Correct Answer: (C) UnsupportedOperation

Explanation: Trying to read from a write-only file raises UnsupportedOperation.

Explanation by: Mr. Dubey
Trying to read from a write-only file raises UnsupportedOperation.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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