Error Handling

Quiz
•
Computers
•
12th Grade
•
Easy
Jeremiah Encluna
Used 12+ 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
Similar Resources on Wayground
14 questions
FILE HANDLING

Quiz
•
12th Grade
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
15 questions
Operating System Components

Quiz
•
12th Grade
10 questions
Operating System Basics

Quiz
•
9th - 12th Grade
11 questions
List of References

Quiz
•
9th - 12th Grade
10 questions
Tin học 10 - Bài 29

Quiz
•
10th Grade - University
10 questions
CSE 1.2.4 Quiz

Quiz
•
9th - 12th Grade
15 questions
Quiz on Operating Systems Basics

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade