9618/11/M/J/22 question 5: worked solution (May/June 2022, paper 11)

Show as plain text

Cambridge AS Level Computer Science 9618 · 5.2 Language Translators Worked solution from the System Software Paper 1 Theory Fundamentals booklet, Part 2 of 2. Q14 9618/11/M/J/22 original Q5 Structured · 9 marks Worked solution (a) Draw one line from each feature to its description: Context-sensitive prompt → Displays predictions of the code being entered Dynamic syntax check → Underlines or highlights statements that do not meet the rules of the language Breakpoint → Stops the code executing at a set line Single stepping → Executes one line of the program and then stops Report window → Outputs the contents of variables and data structures Marks go up by line: 1 correct line scores 1, 2 lines score 2, 3 or 4 lines score 3, all 5 lines score 4. Marks for correct lines [4] (b) Write two licences that let others edit, improve and share the code: Open Source Initiative licence [1] Free Software Foundation (free software) licence [1] (c) Explain the benefits. Any three of these score: It saves time , because code does not have to be written or tested from scratch [1] The code is already tested , so it is more robust and likely to work [1] If a library routine is improved , the program gets the improvement automatically [1] It can do complex tasks the programmer may not be able to write (also scores if the marks above are not already full) Only three marks are available. KEY IDEA Libraries save time and give tested code; IDE features each have one clear job. TOTAL 9 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.