2210/21/M/J/23 question 3: worked solution (May/June 2023, paper 21)

Show as plain text

Cambridge O Level Computer Science 2210 · 7.6 Suitable test data Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 5 of 8. Q39 2210/21/M/J/23 original Q3 Structured · 8 marks Worked solution (a) Validation checks that data is allowed. Validation is an automated check carried out by the computer [1] It makes sure the data entered is sensible, reasonable or acceptable [1] (b) The check accepts whole numbers from 30 to 200. Normal test data: 75 [1] Reason: it is inside the range, so it should be accepted [1] Abnormal test data: Sixty (a word) [1] Reason: it is the wrong data type, so it should be rejected [1] Extreme test data: 200 [1] Reason: it is the highest value in the range, so it should be accepted [1] Other correct values score, for example 30 as extreme, or 20 as abnormal. KEY IDEA Normal data is accepted, abnormal data is rejected, extreme data sits at the edge of the range. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by ZAINEMATICS. Tap the picture to open it on YouTube.