πŸ“Š Python
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

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