Examples Flashcards
Type check & Example
When the program expects only a certain type it reject everything else. (Only letters)
Range Check & Example
Check that numbers are with in a certain range. (Date, the month has to be between 1-12)
Limit check & Example
Check that a value doesn’t exceed a limit. (Exam mark % cannot be > 100)
Length check & Example
Make sure number of characters entered is between a certain number. (Passwords have to be >2 but <15 characters)
Format check & Example
Check that the input has the right format. (Id cards might need to be 3 letters followed by 3 numbers)
Presence check & Example
Make sure fields are not left blank. (Email when signing up for a game)
Consistency check & Example
Entered value is checked against possible answers. (Gender has to be M or F)
Check digit & Example
All the numbers go through a formula to produce a final digit (ISBN 1,3,1,3)