Cambridge AS Level Computer Science 9618 · 1.3 Compression

Q46 · 9618/13/M/J/24 Q2

Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 3 of 3.

Q469618/13/M/J/24original Q2Structured · 9 marks
Question 2 from 9618/13/M/J/24

Worked solution

(a)

Bit depth is 4 bytes per pixel, so no division by 8 is needed.

File size = 4000 × 3000 × 4 = 48 000 000 bytes

Working shown: 4000 × 3000 × 4 [1]

48 000 000 ÷ 1 000 000 = 48 megabytes [1]

(b)(i)

Write any three of these, each compared with lossless:

The file takes less storage space on the web server. [1]

The file is faster to upload and download. [1]

It uses less bandwidth to send. [1]

It uses less of the data allowance.

(b)(ii)

RLE finds consecutive pixels of the same colour. [1]

It stores the colour once and the number of times it repeats. [1]

(c)

Write any two:

Colour depth (bit depth) [1]

Image resolution [1]

KEY IDEALossy compression gives much smaller files; RLE stores a colour and a count instead of repeating pixels.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/13/M/J/24 question 2
VIDEO
▶ Starts at Q2 (8:31)

Starts at Q2 (8:31) · by Pseudocode Pro. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.