2.6.1 Different types of input validation/Write, interpret and debug code that uses validation techniques Flashcards
Define:
Input validation
Checks made to ensure that data entered is sensible and reasonable.
Fill The Blank:
Abnormal inputs or conditions are dealt with using ……….. ………………
Error Checking
Fill The Blank:
Error messages must be ………. and provide users with the options available to ………… any issues. This is different to exception handling.
Clear, Resolve
Define:
Presence Check
Check to see if a required field that should contain data, has been left blank
Define:
Length Check
Ensures that data entered does not contain fewer or more characters than the specified minimum or maximum number
Define:
Type Check
Ensure that is input is of the correct data type
Define:
Format Check
Used to verify that the data input is of the correct format.
Define:
Range Check
Verify that an inputted value lies between a range of set values
Define:
Check Digit
An extra value transmitted with data to determine if it is correct or not