AQA GCSE Computer Science · 8525
Paper 1
Revise: Types of Test DataThis tests the program’s validation: the checks that input meets its rules. A program should not simply work with valid inputs; it should also handle invalid inputs appropriately.
Loading…
GCSE Computer Science · key term
A check that input meets specified rules, such as having the correct data type or being within an allowed range.
Used by AQA and Edexcel
Paper 1
Revise: Types of Test DataThis tests the program’s validation: the checks that input meets its rules. A program should not simply work with valid inputs; it should also handle invalid inputs appropriately.
Specification 6.4.3 · Paper 2
An automatic check that input meets a program’s rules for acceptable data; it does not prove that the data is correct.
A validation loop must read new input and recheck it on each attempt. Otherwise it may never terminate.
Create a free account to keep every note you open and track your progress.
Validation checks input against rules defining what the program will accept. The rules depend on the task: a student ID might require an exact number of characters, whereas an age needs numerical limits. One input can need several checks.