Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
OCR GCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Systems architecture
Unit 2
Memory and storage
Unit 3
Computer networks, connections and protocols
Unit 4
Network security
Unit 5
Systems software
Unit 6
Ethical, legal, cultural and environmental impacts of digital technology
Avg
score:
–
Topics
done:
0/34

Compression: lossy and lossless

Practise 29 exam-style questions on Compression: lossy and lossless for OCR GCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with the Study Helper on hand if you get stuck.

  • 29 questions
  • 1–8 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

A 50 MB video file is compressed to 20% of its original size.

What is the size of the compressed file?

Choose your answer.

  • 2.5 MB
  • 10 MB
  • 30 MB
  • 40 MB

Model answer

10 MB

Explanation

'Compressed to 20% of its original size' means the new file is 20% of 50 MB: 50 × 0.2 = 10 MB. 40 MB is what you get if you wrongly reduce the size by 20%, 30 MB comes from subtracting 20 from 50, and 2.5 MB from dividing 50 by 20. Read carefully whether a question says 'compressed to' or 'reduced by'.

Mark scheme
  1. 1 mark

    10 MB

    Do not award if more than one option is given.

Question 2

2 marks

Give two reasons why a file may need to be compressed.

Model answer

A compressed file takes up less storage space, so more files can be stored. It is also faster to upload or download, because there is less data to transfer.

Explanation

Compression is needed because smaller files save storage space and can be sent, downloaded or streamed more quickly, using less bandwidth. It also helps files fit within size limits such as email attachment limits. Each reason should say what the smaller size allows, not just that the file is smaller.

Mark scheme
  1. 1 mark

    To take up less storage space // so more files can be stored

    1 mark each to max 2. 'To make it smaller' on its own is NE - the reason must say why a smaller file helps.

  2. 1 mark

    So it is faster to transfer/upload/download/send

  3. 1 mark

    So it uses less bandwidth/(mobile) data

  4. 1 mark

    So it fits within an email attachment/upload size limit

  5. 1 mark

    So it can be streamed without buffering // so web pages load faster

Question 3

3 marks

A file compressed using lossless compression can be decompressed to give exactly the original file. A file compressed using lossy compression cannot.

Explain why.

Model answer

Lossless compression does not throw any data away: it stores the same data more efficiently, for example by recording repeated patterns once, and keeps the information needed to reverse the process exactly. Lossy compression permanently removes some of the data, and the removed data is not stored anywhere, so there is no way to put it back and rebuild the original.

Explanation

The difference is whether any data is discarded. Lossless compression only changes how the data is stored, so decompressing reverses it perfectly. Lossy compression deletes data, and nothing in the compressed file says what was deleted, so the original is lost for good.

Mark scheme
  1. 1 mark

    Lossless compression does not remove/discard any data // it stores the same data more efficiently (e.g. recording repeated patterns once)

    1 mark each to max 3. Descriptions of specific algorithms are not required.

  2. 1 mark

    It keeps the information needed to rebuild/reverse the compression exactly

  3. 1 mark

    Lossy compression permanently removes/discards some of the data

  4. 1 mark

    The removed data is not kept anywhere ... so it cannot be put back // so the original cannot be reconstructed

Question 4

5 marks

Tom says: 'Lossless compression is always better than lossy compression, because no data is lost.'

Explain whether you agree with Tom. Refer to both types of compression in your answer.

Model answer

Tom is partly right. Lossless compression keeps all the data, so the original can be restored exactly, which is essential for text, program code and spreadsheets, where any change would be an error. Files can also be edited and saved again without losing quality.

However, lossless is not always better. Lossy compression makes files much smaller, so they stream and download faster and use less storage and mobile data. The loss of quality is often not noticed, for example in music played through headphones or photos viewed on a phone, and lossless video files may be too large to stream smoothly.

So I disagree that lossless is always better: the best type depends on the file and what it is for. Lossless is better when every piece of data matters; lossy is better when a small file matters more than perfect quality.

Explanation

Tom's reason is true but his conclusion is not: 'no data is lost' is only an advantage when the data must be exact or perfect quality is needed. For photos, music and video, the much smaller size of lossy files is usually more valuable. A strong answer gives points on both sides and finishes with a reasoned conclusion.

Mark scheme
  1. 1 mark

    Agree: lossless keeps all the data // the original can be restored exactly // no loss of quality

    1 mark each to max 5. Max 3 if the answer only agrees or only disagrees.

  2. 1 mark

    Agree: lossless is essential for files that must be exact, e.g. text, program code, spreadsheets, medical images

  3. 1 mark

    Agree: files can be edited/saved again without losing quality

  4. 1 mark

    Disagree: lossy produces much smaller files than lossless

  5. 1 mark

    Disagree: ... so lossy files are faster to stream/download/upload // use less storage/bandwidth/mobile data

  6. 1 mark

    Disagree: the loss of quality is often not noticed (e.g. music or photos on a phone)

  7. 1 mark

    Disagree: lossless files may still be too large (e.g. for streaming video or email limits)

  8. 1 mark

    Conclusion: it depends on the type of file and what it is used for // lossy is better when small size matters more than perfect quality

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.