Skip to main content
EnglandComputer ScienceSyllabus dot point

How are characters, images and sound represented in binary, and what affects their file size?

Representing characters with ASCII and Unicode; representing images with pixels, colour depth, resolution and metadata; representing sound with sample rate, sample resolution and bit rate; and the effect on file size and quality.

An OCR J277 1.2.4 answer on representing characters (ASCII, Unicode), images (pixels, colour depth, resolution, metadata) and sound (sample rate, sample resolution, bit rate), and the effect of each on file size and quality.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Representing characters
  3. Representing images
  4. Representing sound
  5. Try this

What this dot point is asking

OCR wants you to explain how characters, images and sound are each turned into binary, to know the factors that control image and sound quality and file size, and to calculate file sizes. The image and sound file-size calculations are common Paper 1 questions, so learn the two formulas and always show working.

Representing characters

Representing images

Representing sound

Try this

Q1. State what is meant by the colour depth of an image. [1 mark]

  • Cue. The number of bits used to store the colour of each pixel (nn bits give 2n2^{n} colours).

Q2. An image is 100 by 100 pixels at 2 bits per pixel. Calculate its size in bytes, ignoring metadata. [2 marks]

  • Cue. 100×100×2=20000100 \times 100 \times 2 = 20000 bits, ÷8=2500\div 8 = 2500 bytes.

Q3. State one difference between ASCII and Unicode. [1 mark]

  • Cue. ASCII uses 7 (or 8) bits and covers basic English; Unicode uses more bits and covers all languages and emoji.

Exam-style practice questions

Practice questions written in the style of OCR exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

OCR 20214 marksAn image is 200 pixels wide and 150 pixels high and uses a colour depth of 3 bits per pixel. Calculate the size of the image in bytes, ignoring metadata. Show your working.
Show worked answer →

Image size in bits is width times height times colour depth.

200×150=30000200 \times 150 = 30000 pixels. 30000×3=9000030000 \times 3 = 90000 bits.

Convert to bytes by dividing by 8: 90000÷8=1125090000 \div 8 = 11250 bytes.

Markers reward the formula (pixels times colour depth), the correct bit total, and the conversion to bytes. Forgetting the divide-by-8, or multiplying by the colour depth wrongly, loses marks. Showing working secures method marks.

OCR 20224 marksExplain how the sample rate and the sample resolution each affect the file size and the quality of a digital sound recording.
Show worked answer →

Sample rate is the number of samples taken per second (measured in hertz). A higher sample rate captures the sound wave more often, giving a more accurate, higher-quality recording, but it produces more samples per second so the file is larger.

Sample resolution (bit depth) is the number of bits used to store each sample. More bits per sample record the amplitude of each sample more precisely, improving quality, but again increase the file size because every sample takes more bits.

Markers reward linking each factor to both quality (more accurate capture) and file size (more data), and being clear that increasing either improves quality at the cost of a larger file.

Related dot points

Sources & how we know this