Cambridge AS Level Computer Science 9618 · 1.3 Compression

Q45 · 9618/11/O/N/22 Q7

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

Q459618/11/O/N/22original Q7Structured · 11 marks
Question 7 from 9618/11/O/N/22

Worked solution

(a)

Write any two benefits:

The DLL is loaded once or only when required, so memory use is reduced. [1]

The executable file is smaller because it does not hold all the library routines. [1]

Also accepted: the DLL can be updated or fixed separately without recompiling the main program.

(b)

Write any two points:

RAM is divided into blocks, and blocks are allocated dynamically to programs. [1]

Unused blocks are reclaimed, and no two programs use the same area of RAM at once. [1]

Also accepted: moves data in from secondary storage when needed (paging, virtual memory).

(c)

Method: lossless compression using run-length encoding. [1]

Repeated sequences of the same character are replaced by a single copy of the character ... [1]

... and a count of how many times it repeats. [1]

(d)

Cache is very fast memory close to the CPU and holds frequently used data and instructions. [1]

More cache means more can be fetched quickly, so there is less swapping with RAM and the CPU does not sit idle waiting. [1]

(e)

3D printer: USB port [1]

Monitor: HDMI port (VGA or DisplayPort also score) [1]

KEY IDEAMemory, cache and ports all exist to keep programs small, fast and connected.
TOTAL 11 marks

Official mark scheme

Mark scheme for 9618/11/O/N/22 question 7
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.