Many programs reuse the same building blocks, such as adding up a total or finding the largest value. This lesson covers those standard algorithm methods, then looks at the difference between validation and verification, the common validation checks, and the categories of test data used to check a program thoroughly.
1. A program should accept an exam mark from 0 to 100. Which value is an example of BOUNDARY test data?
2. Which check makes sure a required field, such as a surname, has not been left blank?
3. Trace this pseudocode, which finds the largest value. Max <- 4 FOR Each IN 9, 2, 7 IF Each > Max THEN Max <- Each ENDIF NEXT Each OUTPUT Max What is output?
4. What is the difference between validation and verification?
Practise real exam questions on this
Type your answer, see your mark against the mark scheme in seconds. Free, 5 a day.
Start practising →
Teaching this topic?
Mark your whole class's answers and see who's stuck, for £19 a month.
See the class plan →
Free revision content. Multiple-choice answers are marked instantly. Written answers are marked by AI on /free-mark.