Programming Fundamentals

Unit 2.2 is the heavy-lifting programming unit. Master variables, iteration, arrays, SQL, and subprogrammes using robust high-level language techniques.

Concept Explorer: Variables vs Constants in Memory

A high-level language allocates RAM slots. Constants are locked, whereas Variables can be updated while the programme runs. Try updating them below!

const PI = 3.14
let score = 0

PI (Constant)
3.14
SCORE (Variable)
0

Modules

Interactive Practical Labs

Put your theory into practice. Launch the Python development environments below to write, test, and debug real algorithms.

Check Your Understanding

1. What is the fundamental difference between a Variable and a Constant?

2. An algorithm relies on evaluating True / False logic gates. What specific operator type is this known as?

Written Exam Scenario (AO2/AO3)

Stretch (Grade 9)

"A school is designing a grading system algorithm. The passing grade will always be 50 marks. Explain why the developer should declare the passing grade as a Constant rather than a Variable." (3 marks)