Binary and Bit Patterns

Why Computers Use Binary

Computers are built from transistors, electronic switches that have exactly two states:

  • On (high voltage) → represented as 1
  • Off (low voltage) → represented as 0

Because hardware can only reliably represent two states, binary (base-2) is the natural number system for digital computers. All data, numbers, text, images, sound, is ultimately stored and processed as binary.


Bits and Bytes

UnitDefinition
BitA single binary digit: either 0 or 1
Nibble4 bits
Byte8 bits

A byte can represent:

  • A number (0-255)
  • A character (see Character Sets)
  • Part of an image or sound file

States and Combinations

With n bits, you can represent 2ⁿ different states (combinations):

Bits2ⁿ ValuesRange
120-1
240-3
380-7
4 (nibble)160-15
71280-127
8 (byte)2560-255
1665,5360-65,535
2416,777,2160-16,777,215

Bit Patterns

A bit pattern is a string of bits. The meaning of a bit pattern depends entirely on context and interpretation:

The same bit pattern 01000001 could mean…
The number 65 (unsigned integer)
The character ‘A’ (ASCII encoding)
Part of a pixel colour in an image
An instruction code for the CPU

The hardware stores only 0s and 1s, the software layer determines what they represent.


Exam Questions

Q: Explain why computers use binary to store data.

Computers are built from transistors which have two stable states, on and off. Binary uses only two digits (0 and 1) to represent these states, making it the natural and reliable number system for digital hardware.

Q: How many different values can be represented with 8 bits?

2⁸ = 256 different values.

Q: What is a bit pattern?

A string of binary digits (bits) whose meaning depends on context, the same pattern can represent a number, a character, part of an image, or an instruction depending on how it is interpreted.


Exam Tip

Always state that the meaning of a bit pattern is determined by context, this is a key point examiners look for.