Program and source code
The instructions a programmer writes in a programming language. The CPU cannot run it until a translator turns it into machine code.
Understanding Program and source code in IGCSE Computer Science Paper 1
What it does: Each line is one instruction and they run in order: first the input is taken, then the greeting is printed. Python's rules require the keyword if, a condition, a colon and an indented line. Following these rules gives valid source code. Source code is written by people. The CPU runs machine code, which is made by translating the source code. A program is an ordered list of instructions, and the order matters for sequence and for getting the right result. The instructions a programmer writes in a programming language. The CPU cannot run it until a translator turns it into machine code.
Common mistakes: Every programming language has rules for how source code is written. This line is missing the closing bracket. It should be print(name, total). The language only knows the instruction print. A misspelt keyword breaks the rules of the language, so the translator cannot understand the line. It should be print(x + y).
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 419–429) and word search (Modules 419–439).
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
source codeFill in the Blanks
Spot the Error
Student with a class code? Join your class →