validation Flashcards
1
Q
what is validation?
A
an automatic computer check to ensure that the data entered is sensible and reasonable
2
Q
presence check
A
checks that data has been entered into a field
e.g. in most databases a key field cannot be left blank
3
Q
range check
A
check that a value falls within the specified range
e.g. number of hours must be less than 50 and more than 0
4
Q
length check
A
checks the data isn’t too short or too long
e.g. a password which needs to be six letters long