2.3 Robust Programs Diagnostic
Definitive Diagnostic Sequence | Defensive Design Tier
Define the term Input Validation and provide one example of a check.
[AO2 Matrix]: Identify the type of test data for a system accepting scores between 1 and 100 (inclusive).
| TestData | Normal | Boundary | Invalid |
|---|---|---|---|
| 50 | |||
| 100 | |||
| 101 |
Identify two ways to improve the maintainability of a program.
[Danger Zone]: Why must a WHILE loop be used for input validation instead of an IF statement?
Define Iterative Testing and state when it occurs.
Define Terminal Testing and state when it occurs.
Contrast a Syntax Error with a Logic Error.
[AO3 Scenario]: A programmer uses the variable a to store a user's age. Explain why this is poor maintainability.
Identify the type of validation check that ensures a field cannot be left blank.
For a password that must be 8 characters or more, identify a Boundary test value and the Expected Outcome.