Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Define a variable.
- ✓Assign and update a value.
- ✓Explain data types.
- ✓Use variables in code.
How does a game remember your score, or an app remember your name? It stores them in variables. What is a variable, and how does code use one?
Match the Variable Terms
Project this and match each programming term to its meaning — tap a term, then tap what it means.
45 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — The Score Keeper
How does a game remember your score? It uses a variable!
👩🏫 Teacher Moves
- Show a changing score.
- Ask how it’s stored.
- Set the goal.
🎒 Student Actions
- Consider.
- Wonder.
- Predict.
Unplugged — Unplug It
Students practice.
👩🏫 Teacher Moves
- Use labeled boxes as variables.
- Put values in and out.
- Feel the idea.
🎒 Student Actions
- Label boxes.
- Swap values.
- Feel it.
Use — Variable Terms
Students use.
👩🏫 Teacher Moves
- Send students to Match the Variable Terms.
- Match each one.
- Note data types.
🎒 Student Actions
- Match.
- Note types.
- Explain.
Modify — Change It
Students modify.
👩🏫 Teacher Moves
- Update a variable’s value.
- Predict the result.
- Explain the change.
🎒 Student Actions
- Update it.
- Predict.
- Explain.
Create — Create
Students conclude.
👩🏫 Teacher Moves
- Create a variable for a program.
- Assign a value.
- Complete the exit ticket.
🎒 Student Actions
- Create it.
- Assign it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students.
Create clearly named variables that store data.
Decompose problems using variables.
Systematically test and refine programs.
Computational Thinker.
One lesson, every learner
Multilingual Learners
- Term + meaning cards.
- Sentence frame: “A ___ stores ___.”
- Use labeled boxes.
Support & Access
- Start with variable and value.
- Match one pair at a time.
- Use real containers.
Stretch & Extend
- Use variables in a program.
- Explain scope.
- Use several data types.
What to gather
- 📽️Projector / board
- 📦Labeled boxes
- 💻Match the Variable Terms
- 💻Coding tool (optional)
- ✏️Pencils
- 🎫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.
Create: name your variables.
Have students name three variables a simple game would need (like score, lives, playerName) and what each stores. A printable variables sheet is in the Computer Science 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
- to put a value into a variable
- the data stored in a variable
- a whole-number value
- a true/false value
- to change a stored value
- text data
- a named container for a value
- the kind of value stored
Part B · Show what you learned
- What is a variable?
- What does it mean to assign a value?
- Name a data type.
Part B: 1) A named container that stores a value in a program. 2) To put a value into a variable, like score = 5. 3) Number (integer), text (string), or true/false (boolean).