Machine code
The binary (0s and 1s) form of instructions that the CPU can run directly. Each instruction has an opcode and an operand. Programs must be translated into it to run.
Understanding Machine code in IGCSE Computer Science Paper 1
What it does: The first part of the instruction is the opcode that says what to do. The second part is the operand that says what to use it on. The CPU only understands binary, so a translator (compiler or interpreter) converts the program into machine code first. The operand is the data, or the address of the data, that the operation acts on. Computers use binary because their circuits have two states, on and off. Binary is hard for humans to read.
Common mistakes: Machine code is made only of 0s and 1s. The digit 2 is not allowed, so the line should be '10110001'. The opcode is the first part of the instruction, so it should be instruction[:4]. [4:] gives the operand, which is the data or address.
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 240–251) and word search (Modules 240–261).
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
machine codeFill in the Blanks
Spot the Error
Student with a class code? Join your class →