Variable State Lab

Track named values through a program, predict final state, and debug a command that updates the wrong variable.

Grade 5 · CMP-0012 / CMP-0011 · no voice

Initial state

Command bank

State-changing program

Build a program and predict both final variable values.

State timeline

StepCommand
No program run yet.

A variable is a named place for a value that can change. Updating one variable does not automatically change another.

⌂ Orco Academy
🌱 Primary · Grades 3–5 · Computing

How “Variable State Lab” works

🎓 You are learning to: Track named values through a program, predict final state, and debug a command that updates the wrong variable.

Welcome! Three steps and you are learning:

  1. 📖 Read the challenge

    It tells you what to build, sort or fix.

  2. 🧪 Experiment

    Try things and watch carefully what happens. You can always reset.

  3. 🔧 Fix and improve

    Use the feedback like a detective: what clue tells you what to change?

💡 Top tip: if you get it wrong, that is useful — find out why before trying again.

Nothing you do here is saved or sent anywhere — experiment freely. Reopen this guide any time with the ? Help button.