LearnFrenzy
Sign in Take a free test

Exception Handling · Exception Handling MCQ · Question 13

What is EAFP? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 13 Back to Exercise

What does the EAFP coding style mean?

  • A Check every condition before acting
  • B Never use exceptions
  • C Try the operation and handle the exception if it fails Correct
  • D Catch all exceptions at the top level
Correct Answer: Option C

"Easier to Ask Forgiveness than Permission" – the Pythonic alternative to Look Before You Leap.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links