Debugging Python Code Errors Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
Dana Paz
Used 8+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
Match the following
An error that occurs when the code does not conform to the rules
Runtime error
An error that occurs during the execution of a program
Logic Error
An error that occurs when the program produces incorrect results
Syntax Error
2.
MATCH QUESTION
1 min • 1 pt
Match the following
Divide by zero
Example of logic error
Code runs, but not how you expected
Example of syntax error
Missing a closing parentheses
Example of runtime error
3.
MATCH QUESTION
1 min • 1 pt
Match the following
Look for red underlines in most IDEs
Catching a logic error
Run your code and observe the output
Catching a runtime error
Using try-catch blocks
Catching a syntax 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
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
1.3 The Internet
Quiz
•
10th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
