Cambridge IGCSE · Topic 1.1
IGCSE Computer Science 0478 / Topic 1 / IGCSE

Two symbols are enough.

A computer is built from billions of tiny switches that are either off or on. Everything it stores, from a photo to this sentence, ends up as patterns of 0s and 1s. Learn to read those patterns and to write any whole number in binary.

The key idea

Computers process data using logic gates and store it in registers, both made of switches that are either off or on. So all data is represented in binary (base 2), which uses only the digits 0 and 1. People use denary (base 10). In binary each place value is twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128 ... A single binary digit is a bit; 8 bits make a byte.

8-bit binary place values 128643216 8421 1010 0101 128 + 32 + 4 + 1 = 165 each place is worth twice the one to its right
Fig. 1: the 8-bit binary number 10100101 is 165 in denary
Section 01

Why binary?

Click the bits in the lab to switch them on and off. Each bit is one switch inside the computer: a transistor that is either off (0) or on (1). Watch the denary value change as you go.

Examiner trap

"Computers use binary because it is easier for them" earns nothing. Say why: the computer is made of switches (logic gates and registers) with only two states, on and off.

Section 02

Binary to denary.

Write the place values above the bits, then add up the place values of every 1.

1286432168421
01011010
Worked example 8 bits
Convert the binary number 01011010 to denary.
  1. Write the place values 128, 64, 32, 16, 8, 4, 2, 1 above the bits.
  2. The 1s are under 64, 16, 8 and 2.
  3. Add them: 64 + 16 + 8 + 2 = 90.
Answer: 90
Worked example 16 bits
Convert 0000 0001 0010 1100 to denary.
  1. The place values of 16 bits run from 32 768 down to 1.
  2. The 1s are under 256, 32, 8 and 4.
  3. Add them: 256 + 32 + 8 + 4 = 300.
Answer: 300
Your turn
Convert 11001001 to denary.
Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

Why do computers represent data in binary?

Quick check+10 XP

In the lab, with 8 bits, what is the largest number you can make?

Quick check+10 XP

What is 00010110 in denary?

Quick check+10 XP

What is the place value of the leftmost bit in a 16-bit number?

Section 03

Denary to binary.

Two methods give the same answer. Use whichever you find quicker, and always check by converting back.

Worked example Subtract the place values
Convert 147 to 8-bit binary.
  1. 128 fits: write 1. 147 − 128 = 19.
  2. 64 and 32 do not fit into 19: write 0, 0.
  3. 16 fits: write 1. 19 − 16 = 3.
  4. 8 and 4 do not fit: write 0, 0. Then 2 fits (1, leaving 1) and 1 fits (1).
Answer: 10010011
Your turn
Convert 58 to 8-bit binary.
Examiner trap

Leaving out leading zeros changes nothing in value, but if the question says "8-bit" you must give all 8 bits: 00111010, not 111010.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to IGCSE Paper 1 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

Convert the denary number 200 to 8-bit binary.

Exam style+20 XP

How many different values can a 12-bit register store?

Exam style+20 XP

Which binary number is the same as denary 99?

Exam style+20 XP

Which statement is correct?

Skill unlocked

Binary and denary, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Why computers use binary, place values, and converting between binary and denary in both directions, up to 16 bits.