Data representation
GCSE Computer Science · AQA 3.3 Fundamentals of data representation · OCR 1.2 Memory and storage
Number bases
- Binary (base 2) is used because computers are made of switches with two states.
- Denary (base 10) and hexadecimal (base 16: 0–9 then A–F). One hex digit = 4 bits (a nibble).
1011 0110₂ = 128 + 32 + 16 + 4 + 2 = 182₁₀ = B6₁₆
- Hex is used because it's shorter and easier for humans to read than binary (colour codes, MAC addresses).
Binary arithmetic
- Binary addition: 0 + 0 = 0, 1 + 0 = 1, 1 + 1 = 10, 1 + 1 + 1 = 11. A result too big for the bits gives an overflow error.
- Binary shifts: left shift multiplies by 2 for each place; right shift divides by 2 (and loses precision).
Keep reading in StudySam
The rest of this topic:
- Units of storage
- Characters
- Images
- Sound
- Compression
Key terms and facts
- Bit
- A single binary digit – 0 or 1
- Nibble
- 4 bits
- Byte
- 8 bits
- Kilobyte
- 1000 bytes
- Binary 1010 in denary?
- 10
- Denary 255 in binary?
- 11111111
- Hexadecimal
- Base 16 – digits 0–9 and A–F
- Hex F in denary?
- 15
- Why use hex?
- Shorter and easier for humans to read
- Binary shift left by 1
- Multiplies by 2
- Overflow
- Result too big for the bits available
- ASCII
- 7-bit character set – 128 characters
Practise data representation
← All GCSE Computer Science topics · Open GCSE Computer Science in StudySam