Level 1

Show and Hide

Level 1 · Chapter 9

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades K–2

Make a program with steps in order and simple loops.

Code 1A-AP-10Read the official text

Also practised: 1A-AP-12 · 1A-AP-14

Common Core State Standards for Mathematics

Number & Operations in Base Ten · Grade 2

Read numbers as hundreds, tens and ones.

Code 2.NBT.A.2Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will make a sprite appear and disappear.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1A
✦ CSTA 1A-AP-10 · CSTA 1A-AP-12 · CSTA 1A-AP-14 · ISTE 1.5.a · Standards
🎯 I canmake a sprite appear and disappear
🧩 New blocks2 blocks
📝 New words5 words
⏱ Lesson time~30 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students think 'hide' deletes the sprite — it is still there, just invisible.
  • Students may hide the cat and not know how to bring it back — show how to click the sprite thumbnail in the sprite list.

🎯 Differentiation

🐢 Struggling: Use a physical piece of paper to cover/uncover a printed cat picture as a metaphor for show/hide.

🚀 Advanced: Set up two scripts: flag clicked → hide cat; space key pressed → show cat. Magic trick!

💡 During the lesson

  • Warm-UpHold up an object (eraser, coin). Hide it behind your back. Ask: "Did it disappear? Is it gone?" (No — just hidden.) Bring it back. Say: "This is what your code will do today." Primes the show/hide mental model before screens.
    Point to the middle card and ask: "Is the cat gone forever?" (No — it is hiding.) This directly combats the #1 misconception. Let students chant: "Here. Hide. Back!" three times.
  • Try ItEach variation teaches a different lesson. The second experiment shows that the last block wins — the cat ends visible because show runs after hide. Remove the body block in Scratch to show that without a body block, the script does nothing. The first experiment shows that show only matters if the cat was hidden first. The third experiment: cat grows as it appears — each click adds 20 to size. Ask: "What happens if you click ▶ five times? Why?" Have students predict before testing.
  • PlanFor struggling students, act it out physically: one student is the "cat" (stands up = visible, crouches = hidden). Assign another student the "flag" role and another the "space bar" role. Run the sequence with bodies before screens.
  • BuildStudents often snap the second script onto the first — show them to drop it in an empty area of the code canvas so it is a separate stack. Walk the room and check for floating unsnapped blocks. Remind: two hats, two jobs.