9618/12/M/J/24 question 8: worked solution (May/June 2024, paper 12)
Show as plain textHide 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. Q21 9618/12/M/J/24 original Q8 Structured · 10 marks Worked solution (a) Give two points: The compiler creates an executable file [1] ... so the code can be tested many times without recompiling , which makes repeated testing quicker [1] (b) Complete the table with one different feature for each purpose (one example answer each): Purpose IDE feature Description for coding Context-sensitive prompts Gives suggestions for code as the user types, so they do not have to remember it for presentation Expand/collapse code blocks The user can hide code they are not working on for debugging Single stepping Runs the code one line at a time and shows the effect of each line Coding feature named correctly [1] Coding description matches [1] Presentation feature named correctly [1] Presentation description matches [1] Debugging feature named correctly [1] Debugging description matches [1] Other accepted: auto-correct (coding); pretty-printing (presentation); breakpoints (debugging). (c) Give two benefits: It saves programming and testing time , as code is not written from scratch [1] The code is already tested , so it is more robust and likely to work [1] Other accepted: no need to maintain the library; it can do complex tasks the programmer cannot; code is easier to read. KEY IDEA A compiler makes a reusable executable; IDE features help coding, presentation and debugging; libraries save time and are tested. TOTAL 10 marks Official mark scheme VIDEO ▶ Starts at Q8 (1:15:52) Starts at Q8 (1:15:52) · by Pseudocode Pro. Tap the picture to open it on YouTube.