Comparing lossy and lossless compression
Lossy makes smaller files but permanently removes data; lossless keeps all data so the original can be restored, but saves less space.
Understanding Comparing lossy and lossless compression in IGCSE Computer Science Paper 1
What it does: Run-length encoding is lossless because decoding 4W2B gives back exactly WWWWBB, with no data lost. Reducing the resolution removes pixels permanently. The file size drops, but the original detail cannot be restored. Lossy throws data away, so it usually saves more space. Lossless keeps everything, so it saves less. RLE stores repeats as counts, so it can be decoded back to the exact original. That makes it lossless. Losing even one character could corrupt the file, so lossless is needed. The removed data cannot be put back, so the result is only an approximation of the original. The mistake reverses the size comparison. Lossless trades a bigger file for keeping all the data.
Common mistakes: Data is removed and cannot be restored, which describes lossy compression. Line 1 should be method = 'lossy'. Lossless compression keeps all the data, so no data is removed. Line 2 should be data_removed = False.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 86–109) and word search (Modules 86–120).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
lossy vs losslessFill in the Blanks
Spot the Error
Student with a class code? Join your class →