Exception Handling

Exception Handling

University

25 Qs

quiz-placeholder

Similar activities

Modeule-I-C

Modeule-I-C

University

25 Qs

LAW ON CORPORATION

LAW ON CORPORATION

University

20 Qs

EMBEDDED SYSTEM DESIGN

EMBEDDED SYSTEM DESIGN

University

20 Qs

Java Access Modifiers Quiz

Java Access Modifiers Quiz

University

20 Qs

Flow Chart

Flow Chart

University

20 Qs

Compile Error Set  4

Compile Error Set 4

University

20 Qs

control system

control system

University

20 Qs

Data Structures and Algorithm Module 4 Quiz

Data Structures and Algorithm Module 4 Quiz

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?