MCQ Single Best Answer Difficult

QCan one block of except statements handle multiple exceptions?

ID: #20266 Create Objects in Python 106 views
Question Info
#20266Q ID
DifficultDifficulty
Create Objects in PythonTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A No, Multiple exceptions cannot be handled in a single block
  • B Yes, likeexcept [ NameError, SyntaxError, ...]
  • C Yes, likeexcept NameError, SyntaxError, …
  • D Yes, likeexcept ( NameError, SyntaxError, ...)
Correct Answer: Option D

Explanation

Yes, like


except ( NameError, SyntaxError, ...)

Share This Question

Challenge a friend or share with your study group.