Lesson 14 Quiz: Debugging: Reading Error Messages and Fixing Bugs

Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.

Questions and answer choices are the live Lesson 14 quiz. The answer key follows the Lesson 14 text.

1. Where should you look first in an error message?

2. You see NameError: name ‘scroe’ is not defined. What is the most likely cause?

3. A list has three items and you ask for fruits[3]. Which error do you get?

4. A program runs without any error but prints the wrong average. What is the best first step?

5. What does TypeError: can only concatenate str (not “int”) to str mean?

← Back to Lesson 14 · Enroll free in the full course