Debugging Quiz Python Debugging Quiz Instructions: Select the best answer for each question and click Submit Quiz. 1. What is debugging? Writing comments Finding and fixing errors in code Creating variables Installing Python 2. Which function displays information for debugging? input() print() random() exit() 3. Which error occurs because of incorrect Python syntax? SyntaxError NameError ValueError TypeError 4. Which tool lets you pause code and inspect variables? Calculator Debugger Compiler Browser 5. What error happens when a variable has not been defined? TypeError NameError IndexError EOFError 6. Which error occurs when dividing by zero? ZeroDivisionError NameError ValueError RuntimeError 7. What does this code print? x = 5 print(x) x 0 5 Error 8. Why are breakpoints useful? They delete code They stop execution so you can inspect the program They compile programs They create variables 9. What is a logic error? Code runs but gives incorrect results Missing semicolon Misspelled keyword Python will not start 10. What is the first step when debugging? Delete the program Identify and reproduce the problem Restart the computer Install another language Submit Quiz Pages: 1 2 3 4 5