9618/31/M/J/21 question 3: worked solution (May/June 2021, paper 31)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 16.1 Purposes of an Operating System (OS) Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 1 of 2. Q1 9618/31/M/J/21 original Q3 Structured · 9 marks Worked solution (a) Draw one line from each term to its description: Multi-tasking → managing the execution of many programs that appear to run at the same time [1] Paging → reading/writing same-size blocks of data from/to secondary storage when required [1] Interrupt handling → transferring control to another routine when a service is required [1] Scheduling → managing the processes running on the CPU [1] Virtual memory → using secondary storage to simulate additional main memory [1] The description 'locating non-contiguous blocks of data and relocating them' is not used. (b) An interpreter reads the source code and runs it without making a translated copy. Write any four of these: The interpreter takes the source code one statement at a time [1] It checks each statement for errors [1] If no error is found, the statement is executed [1] If an error is found, it is reported and the interpreter stops [1] Also accepted: code inside a loop is interpreted again on every repeat Also accepted: the whole program is interpreted again every time it is run Only four of these points can score (4 marks). KEY IDEA An interpreter translates and runs one statement at a time, so it makes no complete translated program and repeats the work each time. TOTAL 9 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.