9618/11/O/N/22 question 7: worked solution (October/November 2022, paper 11)

Show as plain text

Cambridge AS Level Computer Science 9618 · 1.3 Compression Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 3 of 3. Q45 9618/11/O/N/22 original Q7 Structured · 11 marks 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 IDEA Memory, cache and ports all exist to keep programs small, fast and connected. TOTAL 11 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.