Computer Literacy Quizzes

Debugging Quiz

Python Debugging Quiz

Instructions: Select the best answer for each question and click Submit Quiz.

1. What is debugging?




2. Which function displays information for debugging?




3. Which error occurs because of incorrect Python syntax?




4. Which tool lets you pause code and inspect variables?




5. What error happens when a variable has not been defined?




6. Which error occurs when dividing by zero?




7. What does this code print?

x = 5
print(x)



8. Why are breakpoints useful?




9. What is a logic error?




10. What is the first step when debugging?