Computer ScienceExam code: 0984

Number Systems

Data Representation

Why Computers Use Binary

Inside every computer, every piece of information is stored and processed as patterns of ones and zeros. The reason is physical: a computer's circuits are built from millions of tiny switches called logic gates, and each switch has only two stable states, on or off. The two binary digits 1 and 0 map directly onto those two states: 1 represents "on" and 0 represents "off".

This two-state design is what makes computers fast and reliable. A circuit only has to distinguish between "voltage present" and "no voltage", which is easy to do millions of times per second without errors. A system with more states (say, ten different voltage levels for the ten denary digits) would be slower, more expensive, and more prone to errors.

Every other kind of data is just a clever way of encoding it as binary:

  • Magnetic hard drives store data as patches of north or south polarity (1 or 0).
  • Optical discs (CD, DVD, Blu-ray) store data as flat areas (lands = 1) and pits = 0.
  • Solid-state drives store data as charged or uncharged transistors.
A hard drive storing binary as north or south magnetic polarity (N/S bar magnet) next to a CD storing binary as reflective lands (1) and pits (0), with the pit-and-land pattern shown as a stream of 0s and 1s
Source: Data Representation by Save My Exams

Mark-scheme phrase to remember: computers process data using logic gates that can only have two states (1 and 0).

Common exam question

Why computers use binary

Question: Explain why data has to be converted to binary before a computer can process it, or tick the reason computers use binary from a list of four (1–2 marks).

Asked in 2 of the 17 papers. The credited reason is physical. A computer is built from logic gates or switches, and each one has only two states, so it can process only the two values 1 and 0. In the two-mark version one mark is for the gates or switches and the other for their two states, or for the two values they process.

In the multiple-choice version the wrong options blame the user or the data: that a computer can only accept 1s and 0s as input, that binary needs no converting before it is displayed, or that people and computers both process binary quickly. Only the hardware reason, switches and gates that are either on or off, is right.

Quick check

4 short questions on this note. See what has stuck, and where to look if something hasn't.

About 2 minutes

Build on this topic