Learn Without Walls
← Module 6 Home Practice Activities Take the Quiz →

Module 6: Practice Activities

Debugging challenges to test your detective skills. Find the bugs!

Activity 1: Spot the Bug in the Instructions Easy

Screen-Free Challenge

Each set of instructions has one bug. Find it and say whether it is a wrong step, a missing step, or a wrong order bug.

A. Making Orange Juice:

  1. Get a glass
  2. Pour the juice into the glass
  3. Cut the orange in half
  4. Squeeze the orange halves over the glass
  5. Drink the juice

B. Washing Your Hands:

  1. Turn on the water
  2. Put soap on your hands
  3. Rub your hands together for 20 seconds
  4. Dry your hands with a towel

C. Sending a Letter:

  1. Write the letter
  2. Put the letter in an envelope
  3. Put a stamp on the envelope
  4. Write the address on the envelope
  5. Put the envelope in a mailbox
  6. Seal the envelope
A. Wrong order -- step 3 (cut the orange) should come before step 2 (pour juice). You cannot pour juice before squeezing the orange!
B. Missing step -- you need to rinse the soap off your hands before drying them.
C. Wrong order -- step 6 (seal the envelope) should come before step 5 (put it in the mailbox). Also, step 4 (write the address) should come before step 6 (sealing).

Activity 2: The "Yet" Challenge Easy

Screen-Free Challenge

Rewrite each sentence using the word "yet" to turn it into a growth mindset statement. Then write one thing you could do to work toward it.

  1. "I cannot find the bug."
  2. "I do not understand how loops work."
  3. "I cannot draw a hexagon in Scratch."
  4. "I am not good at coding."
1. "I cannot find the bug yet." I could try checking one block at a time.
2. "I do not understand loops yet." I could go back and re-read Lesson 2 from Module 5.
3. "I cannot draw a hexagon yet." I could look up how many degrees to turn (60) and try it.
4. "I am not good at coding yet." I could keep practicing one lesson at a time!

Activity 3: Build a Debugging Flowchart Medium

Screen-Free Challenge

Create a debugging flowchart for this problem: "My Scratch code does not do anything when I click the green flag."

Your flowchart should have at least 4 yes/no questions, going from the simplest check to the hardest. Start with the most common problem and work down.

Draw boxes for questions, arrows for yes and no, and action boxes for fixes.

Start with: "Is there a 'when green flag clicked' block at the top?" Then check: "Are all blocks connected?" Then: "Is the right sprite selected?" Then: "Is the sprite visible?"
Example flowchart questions in order:
1. Is there a "when green flag clicked" block? No → Add one. Yes ↓
2. Are all blocks snapped together? No → Connect them. Yes ↓
3. Is the correct sprite selected? No → Click the right sprite. Yes ↓
4. Is the sprite visible and on the stage? No → Add "show" and "go to x:0 y:0." Yes ↓
5. Are the numbers reasonable? No → Fix the numbers. Yes ↓
6. Ask a friend or grown-up for help!

Activity 4: Debug the Story Medium

Scratch Challenge

Build this broken code in Scratch and fix it. The cat should say "Once upon a time..." then walk forward, then say "The end!"

when green flag clicked
move (50) steps
say "The end!" for (2) seconds
say "Once upon a time..." for (3) seconds

What is wrong? The blocks are in the wrong order. The cat walks first, then says the ending, then says the beginning!

Rearrange the blocks so the order is: (1) say "Once upon a time..." (2) move 50 steps (3) say "The end!" The story should go beginning, middle, end -- not middle, end, beginning!

Activity 5: Debug the Triangle Medium

Scratch Challenge

This code is supposed to draw a triangle, but it draws something else. Build it and fix the bugs.

when green flag clicked
erase all
pen down
repeat (3)
    move (100) steps
    turn right (90) degrees
For a triangle, you need to turn 120 degrees (360 divided by 3 = 120). What angle is in the code right now?
The turn angle is 90 degrees, but a triangle needs 120 degrees (360 / 3 = 120). Change 90 to 120 and the triangle will draw correctly.

Activity 6: Break It on Purpose! Challenge

Scratch Challenge

Build a simple Scratch project that works perfectly (like a cat that walks and says something). Then introduce exactly 3 bugs into your project. Write down what the 3 bugs are on a separate piece of paper.

Now give the buggy project to a parent, sibling, or friend and challenge them to find all 3 bugs using the Debugging Detective steps!

Ideas for bugs to introduce:

  • Remove the "when green flag clicked" block
  • Change a number to something ridiculous (like 9999 steps)
  • Swap the order of two blocks
  • Add a "hide" block at the beginning
  • Disconnect a block from the stack

Activity 7: Rubber Duck Debugging Challenge

Screen-Free + Scratch Challenge

Find a stuffed animal, action figure, or any small toy. This is your "rubber duck."

  1. Open any Scratch project you have been working on (or start a new one).
  2. Place your "rubber duck" next to the computer.
  3. Explain your entire project to the duck, block by block: "First, when the green flag is clicked, the cat moves 10 steps. Then it turns right 90 degrees..."
  4. As you explain, notice if anything sounds wrong or out of place.
  5. If you find a problem while explaining, fix it!

This sounds silly, but it really works. Professional coders use this technique every day!

Take the Module 6 Quiz →