Match the following
Debugging Python Code Errors Quiz

Quiz
•
Computers
•
10th Grade
•
Easy
Dana Paz
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
An error that occurs during the execution of a program
Logic Error
An error that occurs when the program produces incorrect results
Syntax Error
An error that occurs when the code does not conform to the rules
Runtime error
2.
MATCH QUESTION
1 min • 1 pt
Match the following
Code runs, but not how you expected
Example of logic error
Divide by zero
Example of syntax error
Missing a closing parentheses
Example of runtime error
3.
MATCH QUESTION
1 min • 1 pt
Match the following
Run your code and observe the output
Catching a logic error
Look for red underlines in most IDEs
Catching a syntax error
Using try-catch blocks
Catching a runtime error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an example of a runtime error?
Using a variable before it is defined
Trying to change "abc" into an int
Dividing a number by zero.
Using the wrong operator in a calculation.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the syntax error in the following code:
print("Hello World)
Missing a parenthesis at the end of the line.
Missing a closing quotation mark.
Incorrect use of the print function.
Incorrect string format.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the runtime error in the following code:
result = 10 / 0
Division by zero.
Incorrect use of the division operator (/).
Incorrect variable assignment, should be ==.
Incorrect use of the print function.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements will cause a syntax error?
print("Hello, World!")
if (x > 5) { print("x is greater than 5") }
for i in range(5): print(i)
x = 10
Answer explanation
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
GCSE - 2.3 Producing Robust Programs

Quiz
•
9th - 11th Grade
10 questions
Programming - Syntax & Logic Errors

Quiz
•
3rd - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
11 questions
AP CSP Vocab Quiz BI 1, 2

Quiz
•
9th - 12th Grade
12 questions
Programming - Output

Quiz
•
KG - 12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
12 questions
Syntax and Logic Errors

Quiz
•
9th - 11th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University