Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Define syntax errors.
- ✓Define logic errors.
- ✓Tell them apart.
- ✓Debug faster.
Why does some broken code refuse to run, while other broken code runs but is wrong?
Syntax, or Logic Error?
Project this and sort each into Syntax error or Logic error.
55 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Two Kinds of Bugs
One program won’t run; another runs but gives a wrong answer. Why?
👩🏫 Teacher Moves
- Pose the question.
- Share ideas.
- Set the goal.
🎒 Student Actions
- Think.
- Share.
- Get ready.
Use — Error Types
Students learn.
👩🏫 Teacher Moves
- Send students to Syntax or Logic Error?
- Sort each one.
- Note syntax stops it running.
🎒 Student Actions
- Sort.
- Say.
- Note it.
Modify — Spot It
Students practice.
👩🏫 Teacher Moves
- Find a syntax error.
- Find a logic error.
- Say how you’d fix each.
🎒 Student Actions
- Syntax.
- Logic.
- Fix.
Create — Create
Students apply.
👩🏫 Teacher Moves
- Debug a syntax error.
- Debug a logic error.
- Re-test.
🎒 Student Actions
- Fix.
- Fix.
- Test.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- What is a syntax error?
- What is a logic error?
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Identify and fix syntax and logic errors.
Evaluate program correctness.
Document debugging.
Troubleshoot systematically.
One lesson, every learner
Multilingual Learners
- Error-type cards.
- Frame: "a syntax error ___."
- Use code examples.
Support & Access
- Sort syntax vs logic.
- Use 4 errors.
- Use examples.
Stretch & Extend
- Fix a mixed set of bugs.
- Read error messages.
- Add test cases.
What to gather
- 🐛Error cards
- 📽️Screen / board
- 💻Syntax or Logic Error?
- 💻Python
- 📓Notebooks
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Reflect: syntax vs logic errors.
Have students find and fix one syntax and one logic error. A printable error sheet is in the CS library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- an error in code
- spacing that matters in Python
- breaks the language’s rules
- runs but is wrong
- find and fix errors
- a reserved word
- what the program produces
- while the program runs
Part B · Show what you learned
- What is a syntax error?
- What is a logic error?
- Which stops the program from running?
Part B: 1) Code that breaks the language’s rules and won’t run. 2) Code that runs but gives the wrong result. 3) A syntax error.