Why computers represent data in binary
Connect the two stable electronic states of digital hardware to the bit patterns used for numbers, text, sound and images.
Section 1 · Data representation
This sequence follows Cambridge IGCSE Computer Science 0478, 2026–2028 syllabus Version 6. It covers subject content sections 1.1–1.3 only. The separately published 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers and human subject-teacher review remain outstanding.
Before you begin
- No programming language is required. Be comfortable with place value and multiplication; each lesson introduces the computer-science notation it uses.
Work on paper. Try each question before revealing help, and explain why your method works.
Quick readiness check
How many values can one bit represent?
What you will learn
- Explain why a computer converts different data into binary
- Connect bits to logic-gate processing and register storage
- Distinguish the meaning of a bit pattern from its representation
A bit records one of two states
A bit has the value 0 or 1. Electronic circuits can distinguish two states, such as low and high voltage, and logic gates process these states. Groups of bits can encode numbers, characters, sound samples and pixel colours.
The same pattern can mean different things under different rules. For example, 01000001 can be interpreted as a positive integer or as the character A under ASCII. A computer needs a defined representation before it can interpret the bits.
Registers hold patterns for processing
A register stores a fixed-width group of bits while a processor uses it. The width limits how many patterns it can hold. Binary is the internal representation; the original meaning is restored by applying the agreed encoding.
Pause and explain
What allows a processor to interpret stored bits as a character?
Worked example
A camera stores the pixel colour as a bit pattern. Why does the computer need that pattern even though the original information is visual?
Show the worked solution
- A computer processes and stores digital states rather than a continuous visual scene.
- The camera converts each pixel's colour into a binary code.
- The image software interprets those codes using its colour representation.
Answer The image must be encoded as binary so electronic circuits can store and process it; the encoding rule tells the computer which colour each pattern represents.
Try a topic test
Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.
Test this topic →From guided practice to a new situation
Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.
A temperature sensor sends the value 23 to a computer. Explain why the computer receives a binary representation.
Give me a hint
Think about the two states that digital circuits process.
Compare my reasoning
- Digital circuits distinguish two states represented as 0 and 1.
- A group of bits encodes the sensor's value.
- The computer applies the agreed number representation to recover the value.
The sensor value is encoded as bits because the computer stores and processes binary states; the encoding rule tells it that the pattern means 23.
Look for these in your work
- Binary states identified
- Encoding purpose explained
- Interpretation rule mentioned
Give one reason a register's bit width matters.
Give me a hint
Count how many distinct patterns a fixed number of bits can hold.
Compare my reasoning
- Each bit doubles the number of possible patterns.
- A register with n bits can hold 2ⁿ patterns.
- Its width therefore limits the values it can represent at one time.
The width limits the range or number of patterns available; an 8-bit register has 256 patterns.
Look for these in your work
- Width linked to patterns
- Range limitation explained
A student says 01000001 must always mean 65. Explain the flaw in this claim.
Give me a hint
Ask what representation is being used.
Compare my reasoning
- The pattern can represent the denary integer 65.
- Under ASCII, the same pattern represents the character A.
- A representation rule is needed before assigning meaning.
The bit pattern alone does not specify its meaning. It represents 65 as an unsigned integer and A under ASCII.
Look for these in your work
- Two valid interpretations
- Need for encoding stated
Common mistakes
- Saying that a bit is a tiny physical object rather than a value in a representation
- Assuming a binary pattern has one meaning without knowing its encoding
What can you explain now?
Why can the same 8-bit pattern represent either a number or a character?
Compare with the explanation
Its meaning depends on the representation rule
A binary pattern is data; the agreed encoding determines how software interprets it.
After trying it yourself, choose your next review. This is your self-assessment.
Your review choice appears on Today. Sign in to sync it across devices.
Make it stick
Why must a computer use an agreed encoding to interpret a stored bit pattern?
If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.