Browse topics

Curriculum

Explore all 1,858 open curriculum concepts.

Advanced filters 2

Computing Algorithms & Programming Ages 10–13

Variables in programs

Create and use variables in visual programs to store and change values — such as a score, a timer, a counter or a user's answer — and use them in conditions

Teach
Share

Activity

A variable keeps a value that can change while the program runs.

Materials

  • Variable jar labeled score
  • Number chips 0–5
  • Event cards: +1 point / reset / show score
  • Paper

Steps

  1. Adult starts score at 0, adds +1 twice, and shows the jar value.
  2. Child runs three event cards in order and updates the jar each time.
  3. Child predicts the jar after a new order before moving chips.
  4. Fresh check: adult hides the jar; child recalls the last value and what changed it. Record and stop.

Done

Ask what a variable stores. Success: a changeable named value.

Example. “Score starts 0, +1, +1 → 2.”

2 before 0 after

Loading map…
List nearby topics

This concept

Variables in programsProcedural concept

Next

No next concept

Ways to teach

Pick a way to teach this topic. Come back here afterward to record progress.

BBC Bitesize

Variables

Open (new tab)
About this link

Variables supports Variables in programs. An adult picks one article or section; this is a learning page, not a scored quiz.

BBC Bitesize. “Variables.” External page; Gakuva does not copy, host, embed, or redistribute materials.

Unknown — link only

Check understanding and curriculum record

Family records and proof options

Keep a record of your learning

Save photos, notes, and attendance. Export a proof packet for compliance or portfolio reviews.

Check understanding

“In a game your child made with block coding, can they make a score that goes up each time the player wins a point, and end the game when the lives run out?”
Full curriculum checks
  • Create a 'score' variable in a game that starts at 0 and increases by 1 each time the player catches an object
  • Store a user's typed name in a variable and use it in a message (e.g. 'Hello Sam!')
  • Use a variable in a condition (e.g. 'if lives = 0 then game over') and explain what the variable holds at each stage
Curriculum record
Type
Procedural
Subject
Computing
Domain
Algorithms & Programming
Age range
Ages 10–13

Standards

acara-v9:AC9TDI6P05the-ontario-curriculum-mathematics-2020:ON-MATH-2020-G7-C3.1the-ontario-curriculum-mathematics-2020:ON-MATH-2020-G7-C3.2the-ontario-curriculum-science-and-technology-20:ON-SCI-2022-G5-A2.1