Characters, Images and Sound

GCSE Computer Science · Data Representation

Characters

Text is stored using a character set mapping each character to a number:

  • ASCII – 7 bits, 128 characters (English letters, digits, symbols).
  • Extended ASCII – 8 bits, 256 characters.
  • Unicode – up to 32 bits; covers every language and emoji.

Character codes are ordered: 'A' = 65, 'B' = 66 … 'a' = 97. So 'C' − 'A' = 2.

Images (bitmaps)

An image is a grid of pixels, each storing a colour in binary.

  • Colour depth = bits per pixel → 2ⁿ colours.
  • Resolution = width × height in pixels.
File size (bits) = width × height × colour depth

More bits / pixels = better quality but larger files. Add metadata (e.g. dimensions) for the full file size.

Sound

Analogue sound is sampled at regular intervals; each sample is stored in binary.

  • Sample rate (Hz) = samples per second.
  • Bit depth = bits per sample.
File size (bits) = sample rate × bit depth × seconds × channels

Higher sample rate / bit depth = closer to the original, bigger file.

Exam tip

Learn both file-size formulas — they appear most years. State that quality and file size both increase with more bits.

Don't understand a part?

Sign in and ask our AI tutor to explain any passage in plain English.

Try AI explanations →

More on Data Representation

Binary and Denary Hexadecimal Binary Arithmetic and Shifts Compression

← All GCSE Computer Science notes