Q. Which error is raised when trying to open a non-existent file in 'r' mode?

  • (A) FileNotFoundError
  • (B) IOError
  • (C) KeyError
  • (D) TypeError
πŸ’¬ Discuss
βœ… Correct Answer: (A) FileNotFoundError
Explanation: Trying to read a non-existent file raises FileNotFoundError.
Explanation by: Mr. Dubey
Trying to read a non-existent file raises FileNotFoundError.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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