Python Exceptions: An Introduction Quiz

Interactive Quiz ⋅ 7 Questions
By Martin Breuss

In this quiz, you’ll test your understanding of Python exceptions.

You’ll cover the difference between syntax errors and exceptions and learn how to raise exceptions, make assertions, and use the tryexcept block.

The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

Course

Raising and Handling Python Exceptions

In this course, you'll learn what an exception is and how it differs from a syntax error. You'll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.

basics python

Course

Introduction to Python Exceptions

Learn what exceptions are good for in Python. You'll see how to raise exceptions and how to handle them with "try/except" blocks.

basics python

Tutorial

Python Exceptions: An Introduction

In this beginner tutorial, you'll learn what exceptions are good for in Python. You'll see how to raise exceptions and how to handle them with try ... except blocks.

basics python