9618/11/O/N/24 question 4: worked solution (October/November 2024, 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. Q47 9618/11/O/N/24 original Q4 Structured · 17 marks Worked solution (a)(i) Write any two of these: It allocates space on secondary storage to files, and keeps directory structures. [1] It controls access to files, with access rights or passwords, so files can be shared safely. [1] It sets the file naming rules and the actions allowed on files, such as open, close, copy, delete and search. (a)(ii) Back-up software makes duplicate copies of data, so data can be restored if it is lost. [1] It can do this automatically and regularly, so the user does not have to remember. [1] (b)(i) Write any three points, each with its effect: The file uses less storage space on the teacher's system, so more work can be stored. [1] It takes less time to arrive , so the teacher does not wait as long. [1] It uses less bandwidth , so other transmissions are not affected, or less of the email data allowance. [1] (b)(ii) Name the method: run-length encoding (RLE) . [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] (c) Write any three points: It saves development time , because the code is already written. [1] There is less testing, because the routines are already tested and work correctly, so the program is more robust. [1] The student can use subroutines they could not write themselves, so a more complex program is possible. [1] (d)(i) Feature: expand and collapse code blocks. [1] Description: sections of code in one block can be collapsed to see the overall structure, or expanded to see the content. [1] Auto-indentation (formatting code as you type) also scores. (d)(ii) Feature: breakpoints . [1] Description: they stop the program at a chosen line so the student can look at variable values and program flow. [1] A variable watch (report) window that shows the values in variables as each line runs also scores. KEY IDEA Match each tool to its purpose: OS file management, back-up for recovery, compression to save space and time, libraries to save effort. TOTAL 17 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.