Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 5 of 8.
The valid range is -100 to 0, whole numbers only. Choose one value for each type:
Normal: -50 (any whole number from -100 to 0) [1]
Abnormal: 50 (any value outside the range, or text such as "abc", or a non-integer such as -5.5) [1]
Extreme: -100 (or 0), the largest or smallest accepted value [1]
Boundary: -101 (or 1), the value just outside the limit. Values 0 and -100 are also accepted for boundary data. [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.