📁 Paper 1 · Topic 1: Data Representation
1.1a Binary, Denary & Hexadecimal
Cambridge IGCSE Computer Science 0478 · ~14 min read · Free
Notes
──
Video
──
Slides
──
Worksheet
──
Quiz

Number Systems

Computers store and process all data using the binary number system (base 2), which uses only the digits 0 and 1. Each binary digit is called a bit. Humans typically use the denary (decimal) system (base 10), using digits 0–9. Hexadecimal (base 16) is used as a shorthand for binary because it is more compact and easier for humans to read.

Binary (Base 2)

Binary uses place values that are powers of 2. An 8-bit binary number has the following column values:

1286432168421
2⁷2⁶2⁵2⁴2⁰

Example: Convert 10110101 to denary:
128+0+32+16+0+4+0+1 = 181

Converting Denary to Binary

Repeatedly divide by 2 and record the remainders (read remainders from bottom to top).

Example: Convert 45 to binary: 45÷2=22r1, 22÷2=11r0, 11÷2=5r1, 5÷2=2r1, 2÷2=1r0, 1÷2=0r1 → reading remainders upward: 101101

Hexadecimal (Base 16)

Hexadecimal uses 16 digits: 0–9 then A(=10), B(=11), C(=12), D(=13), E(=14), F(=15).

Hex digitDenary value4-bit binary
000000
991001
A101010
F151111

Binary to Hexadecimal

Split the binary number into groups of 4 bits from the right, then convert each group to its hex digit.

Example: 10111010 → split: 1011 | 1010 → B | A → BA (hex)

Hexadecimal to Binary

Replace each hex digit with its 4-bit binary equivalent.

Example: 3F → 0011 | 1111 → 00111111

Hexadecimal to Denary

Multiply each digit by its place value (powers of 16).

Example: 2A hex = (2×16) + (10×1) = 32 + 10 = 42

Why Use Hexadecimal?

  • It is more compact than binary — one hex digit represents 4 binary bits
  • Easier for humans to read and remember
  • Used in: memory addresses, MAC addresses, colour codes (e.g. #FF5733), HTML/CSS, error codes, debugging
Exam tip: You must be able to convert between all three number systems. In Cambridge 0478, show all working steps — partial marks are awarded. Always write 8-bit binary with leading zeros (e.g. write 00101101 not 101101).
⚠️ Common Mistakes
  • Forgetting leading zeros in binary (8-bit numbers must have 8 digits)
  • Confusing hex letters — A=10, B=11, C=12, D=13, E=14, F=15
  • Reading division remainders in the wrong order (should be bottom to top)
  • Not splitting binary into groups of exactly 4 when converting to hex
Video coming soon
This lesson video is in production

Key points covered in this video

  • Binary place values and converting binary to denary
  • Converting denary to binary using repeated division by 2
  • The hexadecimal number system and its 16 digits (0–9, A–F)
  • Converting between binary and hexadecimal using 4-bit groups
  • Real-world uses of hexadecimal: memory addresses, colour codes, MAC addresses
Click slide or press arrow keys to navigate
✍️

Worksheet — 1.1a Binary, Denary & Hexadecimal

5 Cambridge-style questions · 10 marks · instantly marked

Q1Convert the binary number 10110011 to denary. Show your working.[2 marks]
✅ Mark scheme
Mark scheme
128+32+16+2+1 [1] = 179 [1]
Q2Convert the denary number 75 to binary. Show your working.[2 marks]
✅ Mark scheme
Mark scheme
Correct method shown (repeated division by 2) [1]; 01001011 [1]
Q3Convert the binary number 11010110 to hexadecimal.[2 marks]
✅ Mark scheme
Mark scheme
Split into 1101 | 0110 [1]; D6 [1]
Q4Convert the hexadecimal number B4 to denary.[2 marks]
✅ Mark scheme
Mark scheme
(11×16) + (4×1) [1] = 176 + 4 = 180 [1]
Q5Give two reasons why hexadecimal is used instead of binary when representing memory addresses.[2 marks]
✅ Mark scheme
Mark scheme (any 2)
Shorter/more compact than binary [1]; easier for humans to read and remember [1]; less likely to make errors when reading/writing [1]; easy to convert to/from binary [1]
Topic Quiz
Question 1 of 10
You scored
out of 10
Card 1 of 8
Click to reveal definition
🎉
Session complete!
TermDefinition
🎯

Mini Test — 1.1a Binary, Denary & Hexadecimal

Timed exam-style conditions. No feedback until you submit.

  • 8 questions · 10 marks · 10 minutes
  • 5 multiple choice + 3 short answer
  • Mark schemes shown after submission
Topic 1: Data Representation Next: 1.1b Negative Numbers →
🔒
Unlock Pro
Subscribe to access all Cambridge IGCSE 0478 lessons.
Subscribe now →