Exception basics Python MCQ Questions and Answers Online Test
Exceptions are events that can modify the flow of control through a program. In Python, exceptions are triggered automatically on errors, and they can be triggered and intercepted by your code. They are processed by four statements:
try/except
Catch and recover from exceptions raised by Python, or by you.
try/finally
Perform cleanup actions, whether exceptions occur or not.
raise
Trigger an exception manually in your code.
assert
Conditionally trigger an exception in your code.
with/as
Implement context managers.
Quiz Description:Â
Name: Exception basics Python MCQ Questions and Answers Online Test
Subject:Â Python
Topic:Â Exception basics
Questions: 15 Objective Type Questions
Time Allowed: 15 Minutes
Language:Â English
Important for: Â B. Tech. / M. Tech. Students, B.Sc. / M.Sc. (CS / IT) and aspirants of competitive exams, computer science job interviews, Python job interviews, etc.
Created By: Esha Tripathi







