OCR J277 | Component 02 | 2.2 Programming fundamentals | 2.2.1

Variables, Constants and Assignment

10 XP 5 mins Public Preview

Quest Briefing

OCR J277 2.2.1 expects you to understand how programs store and update values. In this quest, memory is your inventory: variables hold values that can change, constants mark values that should stay fixed, and assignment puts data into a named place.

By the end of this quest, you can...

Explain what a variable stores.
Explain why programmers use constant-style names.
Use assignment to store and update a value.
Trace how a value changes line by line.
Choose clear names for stored data.