Error Handling

Error Handling

12th Grade

10 Qs

quiz-placeholder

Similar activities

Exception Handling

Exception Handling

12th Grade

14 Qs

Python: обробка винятків try-except

Python: обробка винятків try-except

9th - 12th Grade

11 Qs

BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

BTEC Level 3 - Unit 1 - Topic 5 (Validating Data)

12th Grade

13 Qs

Python Lists v2

Python Lists v2

9th - 12th Grade

15 Qs

Java Strings and Math Quiz

Java Strings and Math Quiz

12th Grade

15 Qs

Reading & writing to a text file (Python)

Reading & writing to a text file (Python)

9th - 12th Grade

14 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

While Loops and Boolean Statements

While Loops and Boolean Statements

10th - 12th Grade

10 Qs

Error Handling

Error Handling

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Jeremiah Encluna

Used 11+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

It involves anticipating and managing errors or exceptions that may occur during program execution.

File Handling

Error Handling

try:

except:

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Occurs when a variable or function name is not found.

TypeError

NameError

FileNotFoundError

IndexError

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Arises when an operation is performed on an inappropriate data type.

TypeError

NameError

FileNotFoundError

IndexError

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Raised when attempting to open a file that does not exist.

FileNotFoundError

TypeError

ZeroDivisionError

IndexError

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Occurs when accessing an invalid index in a sequence.

TypeError

NameError

FileNotFoundError

IndexError

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Happens when dividing a number by zero.

ZeroDivisionError

IndexError

NameError

TypeError

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are the two keywords used in Error Handling?

try: except:

try: else:

If: else:

try: finally:

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?