A software company distributes its programs as compressed files.
Explain why lossless compression is used for the program files.
Mark scheme
Award up to two marks for a linked explanation such as:
- No data/instructions are removed (1) so the program still works/runs correctly after decompression (1)
- The original file can be recreated exactly (1) so all the code/instructions are present when the program is run (1)
- Lossy compression would permanently remove some data (1) so the program would not execute correctly/could crash (1)
- Every instruction is needed for the program to run (1) so the code must not be changed/lost (1)
For both marks, the expansion must follow/associate with the statement.
Allow 'no data/instructions are removed/lost' on its own as the point mark (1); the second mark needs the consequence for the program, e.g. it still works/runs correctly, or all the instructions are present.
Award credit for a contrast with lossy compression only when the loss of data is linked to the program failing/not running correctly.
Do not accept 'lossless is better quality'/keeps the quality without saying that data/instructions are not lost.
Do not accept 'it makes the file smaller'/'downloads faster'/'transmits faster' as a reason for using lossless, as both types of compression reduce file size.
Example answers and how they were marked
No instructions are removed so the program still works after it has been decompressed.
Why: No data/instructions removed (1) and linked reason that the program still works correctly (1).
Lossless compression does not lose any data.
Why: Point mark for 'no data/instructions are lost' on its own (1); no consequence for the program is given, so the second mark is not awarded.
Lossless compression makes the file smaller so it downloads faster.
Why: File size and download speed apply to both types of compression, so this does not explain why lossless is used for the program files.