Validation and Verification

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Validation and

Verification
Validation

 Validation is the process of checking your data for errors before processing
is done.
Types of validation checks

 Types of validation checks include:


1. range checks
2. reasonableness checks
3. data type checks
4. consistency checks
5. presence checks
6. length checks
7. check digits
8. parity checks
Range Check

 This ensures that numbers entered falls within a certain range.


 Example:
 hours in a given day cannot exceed 24 hours
 Percentage score on a test cannot exceed 100
Reasonableness Check

 Reasonableness check ensures that the data entered is realistic.


 Example:
 Ensure that zeros are not entered by mistake as an employee salary
Data Type Checks

 Data type check ensures that the characters entered are of the correct data
type.
 Example:
 Letters will not be accepted in a field defined to store numbers.
Consistency Checks

 Consistency checks makes a comparison between the data currently entered


and data previously entered. This prevents false or dishonest data from being
entered.
 Example:
 The age of the person entered has to match the date of birth entered in a separate
field.
Presence Check
 Presence check ensures that data that is
required/mandatory is actually entered.
 Example:
 When signing up for an email account, your
name, date of birth, etc. is required to complete
the process.
Length Checks

 This check is used to decide if the data entered has the correct amount of
characters or digits. It ensures that the amount characters or digits entered
isn’t shorter or longer than the prescribed length.
 Example a phone number must have a certain amount of digits:
 1 (867) 000-0000
Check Digits
 Check digit is used to ensure that a range of numbers has been entered in
correct sequence. The check digit is the final number in the sequence. The
computer will carry out the check by generating a check digit for the numbers
entered, using an algorithm. It will then compare the answer received to the
check digit entered. If there is a match, the data is entered correctly.
 The check digit is generated from an algorithm.
 Example:
 The check digit ‘6’ is on the right of the image below
Parity Checks

 Parity check is used to check if data was corrupted during transmission.


 There are two types of parity checks:
 Odd parity:
 Odd parity is used when the amount of 1’s in the data to be transmitted is an odd number.
The parity bit for odd parity is 0.
 Even parity:
 Even parity is used when the amount of 1’s in the data to be transmitted is an even
number. The parity bit for even parity is 1.
Activity

 Which validation check will you use to ensure that each of the following
pieces of data below are entered correctly:
1. The birth year of a student.
2. The day of the month.
3. Email address on an application form for a weekly email news subscription.
4. A cell number.
5. An a book’s ISBN which contains 13 digits.
Verification

This is the process of checking for


errors after processing has been done.
Data verification methods

 There are two types of data verification methods:


 Double entry
 Proof reading
Double entry

 Double entry errors occurs when the same data is entered


twice, at times by different people. If there is any
difference between the entries made, the data will not be
processed.

You might also like