
Worksheet Questions: Errors and Exception Handling
Authored by Ажаргуль Мухамадин
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an error?
A command used to execute a program quickly
A problem that occurs during program execution or due to syntactic writing
A function that shortens and optimizes code
A tool that automatically fixes a program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a SyntaxError?
The program does not work correctly
An error that occurs during writing the code
The data type does not match
A division-by-zero error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For what purpose is the try-except construct used?
To shorten code
To read or write files
To prevent or handle errors
To create a conditional operator
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code x = int("abc"), which error occurs?
SyntaxError
ValueError
TypeError
ZeroDivisionError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the finally block?
It repeats the try block
It executes only if no error occurs
It executes only if an error occurs
It executes whether an error occurs or not
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is written in the except block?
Code that runs when an error occurs
Only print()
If statements
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does a ValueError occur?
When a non-numeric value is converted to a number
When there is a list index error
When dividing by zero
When the length of a string is zero
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Hyrje në SO
Quiz
•
University
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade