Binary and data units

Study Part 2 · Topic 1 of 5

Why computers count in ones and zeros, and how bits become gigabytes.

30 minInteractiveData storage and IT in the organisation
0 activities complete
Binary

Two states: on and off

A computer stores everything as bits: a 1 (voltage on) or a 0 (voltage off). Eight bits make a byte, which can hold 256 different values (0 to 255).

Bit position1286432168421
Binary 1101 011011010110

Add the place values where there is a 1: 128 + 64 + 16 + 4 + 2 = 214.

Convert a byte to decimal
Decimal value–
Type 1 or 0 in each box. The total is the decimal value of the byte.
Hexadecimal

Shorthand for binary

Hexadecimal (base 16) uses 0 to 9 and A to F. One hex digit equals four bits, so a byte is always two hex digits: 1101 0110 = D6. You will see hex in MAC addresses, colour codes and error codes.

Units

From bytes to terabytes

UnitSizeRoughly holds
Byte (B)8 bitsOne character
Kilobyte (KB)1 024 bytesA short email
Megabyte (MB)1 024 KBA song or a photo
Gigabyte (GB)1 024 MBA full-length film
Terabyte (TB)1 024 GBAbout 250 000 photos
Match the term

Tap a term on the left, then its meaning on the right. 5 pairs to go

Knowledge check

What is binary 0000 1010 in decimal?

Key takeaways

  • Computers store everything as bits; 8 bits make a byte.
  • Binary uses place values 128, 64, 32, 16, 8, 4, 2, 1.
  • Hexadecimal is shorthand: one hex digit is four bits.