9618/21/O/N/24 question 5: worked solution (October/November 2024, paper 21)
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. Q6 9618/21/O/N/24 original Q5 Structured · 10 marks Worked solution (a) Match each activity to its stage: Activity Stage The walkthrough method is used. Testing An algorithm is implemented in a programming language. Coding The client is interviewed about problems with the current system. Analysis The program is modified to run on new hardware. Maintenance Records and file structures are defined. Design Testing [1] Coding [1] Analysis [1] Maintenance [1] Design [1] (b)(i) Valid range is 24 to 37. Test the edges of the range and a value just outside each edge: Type of test data Test data value Expected result Normal 30 TRUE Boundary 24 TRUE Boundary 37 TRUE Abnormal / boundary 23 FALSE Abnormal / boundary 38 FALSE One correct row for 24 (TRUE) [1] One correct row for 37 (TRUE) [1] One correct row for 23 (FALSE) [1] One correct row for 38 (FALSE) [1] Other correct rows also score, for example 12 or 99 (abnormal, FALSE) or 25 and 36 (TRUE). Four marks at most. (b)(ii) Testing a module on its own, then joining it to others, is this type: Write: integration testing [1] KEY IDEA Test data should include normal values, the boundaries of the range and values just outside it. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Pseudocode Pro. Tap the picture to open it on YouTube.