Validation and Verification
Validation and Verification
G-II / III
Validation and verification are two ways to check that the data entered into a computer is correct.
Data entered incorrectly is of little use.
Data verification
Verification is performed to ensure that the data entered exactly matches the original
source. Verification means checking the input data with the original data to make sure that there have
been no transcription errors (transcription means copying the data). The standard way to do this is to
input the data twice to the computer system. The computer then checks the two data values (which should
be the same) and, if they are different, the computer knows that one of the inputs is wrong. e.g. Entering
password twice during sig-up. Verification methods include:
Ø double entry
Ø screen/visual check (proof reading)
Ø parity check
Ø checksum.
Validation is an automatic computer check to ensure that the data entered is sensible and reasonable. It
does not check the accuracy of data.
For example, a secondary school student is likely to be aged between 11 and 16. The computer can be
programmed only to accept numbers between 11 and 16. This is a range check.
Types of validation
There are a number of validation types that can be used to check the data that is being entered.
1) What is an automatic computer check to make sure data entered is sensible and reasonable known as?
2) What validation type would make sure a post code was entered in the correct format?
3) What validation type would you use to check that numbers fell within a certain range?
5) What validation type uses the last one or two digits to check the other digits are correct?
6) What validation type checks a minimum number of characters have been entered?
7) Data is to be entered into a computer in the format YYMMDD. Which of the following is not a valid
date?
b) Validation can check that the data falls between certain allowable boundaries
a) Double entry - typing the data in twice and getting the computer to check the second version against
the first
b) Using presence, range and length checks to make sure that no mistakes happen
c) Printing out what you have typed in and comparing it against the source data
A hospital holds records of its patients in a database. Four of the fields are:
• date of visit (dd/mm/yyyy)
• patient’s height (m)
• 8-digit patient ID
• contact telephone number
The presence check is one possible type of validation check on the data. For each field, give another
validation check that can be performed. Give an example of data which would fail your named validation
check. A different validation check needs to be given for each field.
patient’s height
patient ID
Contact telephone
number
A company requests new customers who register online to give the following details:
• name
• address
• type of credit/debit card
• payment card number
All details must be entered.
(a) (i) Describe one suitable different validation check for each field.
Name: __________________________________________________________________________
Address: ________________________________________________________________________
State two different validation checks and give an example of their use. Each example
should be different.
Check 1: _________________________________________________________________________
Use: ____________________________________________________________________________
Check 2: _________________________________________________________________________