Search Header Logo

Exception Handling

Authored by Yhasnaya Soriano

Other

University

Used 1+ times

Exception Handling
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

An error that happens during execution of a program.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When that error occurs, Python generate an exception that can be handled, which avoids your program to crash

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Exceptions are convenient in many ways for handling errors and special conditions in a program. When you think that you have a code which can produce an error then you can use exception handling.

True

False

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

You can raise an exception in your own program by using the ___________________.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Raising an exception breaks current code execution and returns the exception back until it is handled

True

False

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Example for Exception Cases

IOError

ImportError

ValueError

RangeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the file cannot be opened

IOError

ImportError

ValueError

IndexError

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?