Where hexadecimal is used in computer science
Base-16 notation that shortens binary so people can read and write it. Used in colour codes, MAC addresses, memory addresses and error codes.
Understanding Where hexadecimal is used in computer science in IGCSE Computer Science Paper 1
What it does: A memory address is a binary number that is long to read. Hex shows each 4-bit nibble as one digit, and 0x marks the number as hex. Hex error codes are short and easy to write down or search for, and they map directly to the underlying binary value. Hex digits only go from 0 to 9 and A to F. G is not a hex digit, so #GG8800 is not valid. The pairs are red, green and blue in that order. FF is 255 in denary, which is the highest value for 8 bits. Each hex digit stands for 4 bits. There are 12 hex digits, and 12 x 4 = 48 bits.
Common mistakes: Hexadecimal colour codes can only use the digits 0-9 and the letters A-F. G is not a hex digit, so the blue value should be #0000FF. Memory addresses are written in hexadecimal, which only uses 0-9 and A-F. G is not valid, so the line should be address ← 0x1A3F.
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 18–27) and word search (Modules 3–27).
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
hexadecimalFill in the Blanks
Spot the Error
Student with a class code? Join your class →