6.4.3: understand the need for and be able to write programs that implement validation (length check, presence check, range check, pattern check)
| Keyword | Definition |
|---|---|
| input data | the values that are sent into a program (e.g. from the user or a file) |
| length check | type of validation that checks the number of characters in input data |
| pattern check | type of validation that checks that input data matches a specific sequence of letters, symbols or digits |
| presence check | type of validation that checks to see if input data is empty or not |
| range check | type of validation that checks that input data is between minimum and maximum values |
| validation | checking data (often user input) to see if it is suitable to be processed by a program |