9618/23/O/N/24 question 5: worked solution (October/November 2024, paper 23)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 12.1 Program Development Life cycle Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 1 of 3. Q7 9618/23/O/N/24 original Q5 Structured · 7 marks Worked solution (a) Match each activity to its stage: Activity Stage A compiler is used. Coding A program that has been released for general use is modified. Maintenance The dry run method is used. Testing The program structure is specified. Design Coding [1] Maintenance [1] Testing [1] Design [1] (b) Write the method and say how it works: Method: stub testing [1] Replace Test_A() and Test_B() with simple dummy modules (stubs) [1] Each stub returns a known value , or displays a message to show it was called, so the main program can go on being tested [1] KEY IDEA A stub is a simple stand-in for a module that is not ready, so testing can continue. TOTAL 7 marks Official mark scheme VIDEO ▶ Starts at Q5 (1:06:00) Starts at Q5 (1:06:00) · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.