Skip to main content
EnglandComputer ScienceSyllabus dot point

Why is data compressed, and when should you use lossy rather than lossless compression?

The purpose of compression, the difference between lossy and lossless compression, and how to choose the appropriate type for a given scenario.

An Eduqas GCSE Computer Science answer on why data is compressed and the difference between lossy and lossless compression, including run-length encoding and how to choose the right type for a given scenario.

Generated by Claude Opus 4.89 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. Why compress data
  3. Lossy compression
  4. Lossless compression
  5. Run-length encoding
  6. Try this

What this dot point is asking

Eduqas wants you to explain why data is compressed and the difference between lossy and lossless compression, and to choose the right type for a scenario. You should also be able to describe run-length encoding as one lossless method. The contrast and the scenario choice are the marks.

Why compress data

Lossy compression

Lossless compression

Run-length encoding

Try this

Q1. State one reason a file might be compressed before sending it over the internet. [1 mark]

  • Cue. To reduce its size so it transfers faster and uses less bandwidth.

Q2. State the key difference between lossy and lossless compression. [2 marks]

  • Cue. Lossy permanently removes data and cannot fully restore the original; lossless removes no data and the original can be reconstructed exactly.

Q3. Name one type of file for which lossless compression must be used. [1 mark]

  • Cue. A text document, spreadsheet or program/executable file (any one).

Exam-style practice questions

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

Eduqas Component 1, 20224 marksExplain the difference between lossy and lossless compression, and give a suitable use for each.
Show worked answer →

Lossy (up to 2 marks): some data is permanently removed to make the file much smaller, so the original cannot be fully restored; the loss is chosen to be hard for people to notice. Suitable use: streaming or storing music (MP3) or photos (JPEG), where a small quality drop is acceptable.

Lossless (up to 2 marks): no data is lost, so the original can be reconstructed exactly, usually with a smaller reduction in size. Suitable use: text documents, spreadsheets or program files (ZIP, PNG), where every bit must be recovered.

Markers reward the "permanently removed, cannot restore" versus "no loss, can restore exactly" contrast, plus a sensible use for each.

Eduqas Component 1, 20233 marksDescribe how run-length encoding compresses data, and state one type of data for which it works well.
Show worked answer →

Run-length encoding (up to 2 marks): it replaces runs of the same repeated value with a single value and a count of how many times it repeats, so a long run of identical data is stored much more compactly. For example a row of 20 identical white pixels is stored as "white, 20" rather than listing all 20.

Works well (1 mark): on data with long runs of repetition, such as simple images with large areas of one colour (icons, logos). It is lossless, so the original is fully restored.

Markers reward the value-plus-count idea and a data type with lots of repetition.

Related dot points

Sources & how we know this