Six original Cambridge-style questions on lossy and lossless compression, with worked solutions.
Give two reasons why files are compressed before they are sent over the internet.
Describe the difference between lossy and lossless compression.
Use run length encoding to compress the text PPPPPQQRRRRRRR.
The text PPPPPQQRRRRRRR is stored using 1 byte per character. In the RLE version each count and each character uses 1 byte. Calculate the number of bytes saved.
A school uploads photos to its website and also sends spreadsheets of exam marks. State which type of compression should be used for each and justify your answers.
A student says "run length encoding always makes a file smaller." Explain, with an example, why this is not true.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.