Lesson 7 of 10

🐛 Debug It!

🎯 Grades 3–5 ⏱ ~25 minutes 🟠 Intermediate

What You'll Learn

  • What a bug is and where the word comes from
  • How to read a broken program and find the mistake
  • The 4-step debugging strategy: Read, Predict, Test, Fix
Quick Check

1. What is a bug in programming?

AA type of turtle command
BA mistake in a program that causes wrong behavior
CA feature only expert coders use

2. What is the first step in debugging a program?

ADelete everything and start over
BRead through each block and predict what it does
CAsk someone else to fix it

3. The word "bug" in programming comes from…

AA cartoon character
BA real moth found inside a 1947 computer
CA type of computer chip