Home Computer Science Exception basics Python MCQ Questions and Answers Online Test

Exception basics Python MCQ Questions and Answers Online Test

122

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

Previous QuizNCERT Class 10 Science Chapter 11 Quiz : The Human Eye and Colorful World
Next QuizException coding Python MCQ Questions and Answers Online Test

LEAVE A REPLY

Please enter your comment!
Please enter your name here