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

Show as plain text

Cambridge AS Level Computer Science 9618 · 5.1 Operating Systems Worked solution from the System Software Paper 1 Theory Fundamentals booklet, Part 1 of 2. Q4 9618/12/O/N/22 original Q1 Structured · 9 marks Worked solution (a) Draw one line from each utility to its purpose: Virus checker → to scan for malicious program code [1] Disk formatter → to initialise a disk [1] Backup → to create copies of files in case the original is lost [1] Disk repair → to check for and fix inconsistencies on a disk [1] Defragmentation → to reorganise files so they are contiguous [1] "To decrease the file size" (compression) is not used. (b)(i) State two drawbacks of a compiler. Any two of these score: Large amounts of source code take time to compile (slower to produce object code) [1] The code cannot be changed without recompiling [1] The program will not run if there are any errors , and errors cannot be corrected in real time (also scores if the marks above are not already full) Other accepted answers: one error can cause other false errors; hard to test sections or unfinished code. (b)(ii) Explain why a program might be partly compiled and partly interpreted. Any two of these: Partly compiled code can be used on different platforms , because it is interpreted when it runs [1] Machine code is made at run time, so the code is optimised for the CPU [1] KEY IDEA Match each utility to its single job; compilers are slow to retest, while partial compilation gives portability. TOTAL 9 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Audere Prep. Tap the picture to open it on YouTube.