MCQ Practice Single Best Answer Topic: Create Objects in Python

Q Can one block of except statements handle multiple exceptions?

Question ID
#20266
Subchapter
Create Objects in Python
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is 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: D

Explanation

Yes, like


except ( NameError, SyntaxError, ...)

Share This Question

Share this MCQ with your friends or study group.