The five basic features of programming
Every program is built from five features: variables, control structures, data structures, syntax, and libraries and classes.
Understanding The five basic features of programming in QCE Digital Solutions Unit 1
What it does: A for loop is a control structure because it repeats code, controlling the flow of the program. A list holds many values together, which makes it a data structure. The five features are variables, control structures, data structures, syntax, and libraries and classes. Every program is built from them. score = 10 stores a value under a name, which is a variable. import random brings in a library. Syntax is the set of rules for writing code, such as colons, brackets and keywords. A named storage place is a variable. A variable must be assigned a value before the program uses it. Put total = 10 on the first line.
Common mistakes: The variable is misspelled as scor, which was never created, so Python raises a NameError. It should be score = score + 10. A control structure like if needs a colon at the end of its line (syntax). It should be if age >= 16:.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 82–148) and word search (Modules 82–380).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
five features of programmingFill in the Blanks
Spot the Error
Student with a class code? Join your class →