Exception Handling

Exception Handling

University

25 Qs

quiz-placeholder

Similar activities

UNIT 2 & 3

UNIT 2 & 3

University

30 Qs

Python workshop day2

Python workshop day2

University

20 Qs

UNIT 2: REAL PROPERTY, TEXAS REAL ESTATE

UNIT 2: REAL PROPERTY, TEXAS REAL ESTATE

11th Grade - University

21 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Algo-Unlock

Algo-Unlock

University

20 Qs

Season 4 #Spaic Python Weekly Quiz

Season 4 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

OODJ CLASS QUIZ

OODJ CLASS QUIZ

University

30 Qs

Tildación diacrítica

Tildación diacrítica

University

20 Qs

Exception Handling

Exception Handling

Assessment

Quiz

Other

University

Easy

Created by

Yhasnaya Soriano

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?