Data Validation and Verification - BBC Bitsize
Data Validation and Verification - BBC Bitsize
verification
https://www.bbc.co.uk/bitesize/guides/zd9cy9q/revision
/1
Validation and verification are two ways to check that the
data entered into a computer is correct. Data entered
incorrectly is of little use. There are two ways to reduce
errors when entering data into a computer system:
1. Range check
2. Data type check
3. Consistency check (also known as
inconsistency checks)
4. Reasonableness check
5. Presence check
6. Length check
7. Format check
Validation type How it works Example usage
Range check checks that data number of hours worked
entered is within a must be less than 50
specified range and more than 0
Answer:
• Verification of the order:
• Comparing the order entered at the head office with the
original order sheet,
• or checking the order with the agent,
• or checking the order with the home owner who made
the order.
• Validation checks:
• Data type check—check if the correct type of data is
entered. For example, numeric data should be entered in
the quantity field
• Range check— check if data is within a given range. For
example, the quantity should not be less than 1 and not
more than 100
• Inconsistency check—check to see if the data on the
order are consistent. For example, if the title is Mr then
the gender should be Male
• Reasonableness check – check the order to see if it is
reasonable. For example, the pattern of previous orders
for a home owner can be used to determine if the current
order is within the usual order pattern.
• In most national census exercises, data are collected and
entered on forms by interviewers. Data from the forms
are then captured on tapes by data entry personnel.
Finally, the data from the tapes are merged into a single
file.
• (a) Identify ONE error that can occur during the data
collection phase. (1 mark)
• (b) Identify ONE error that can occur during the data
capture phase and describe how this type of error can be
reduced. (2 marks)
• ( c) Before the merged data can be used to generate
reports it must be validated. State themeaning of the
term 'validation'. (1 mark)
• (d) Name and describe THREE checks that can be used to
validate the data. (6 marks)
(a) Identify ONE error that can occur during the data
collection phase:
• Persons providing inaccurate information
• interviewer entering data incorrectly
• (b) Identify ONE error that can occur during the data
capture phase and describe how this type of error can
be reduced:
• Data entry personnel keying in incorrect data – another
data entry clerk can enter data from the same
questionnaire. The two files are compared, if there are no
differences then the file is saved; if there are inaccuracies
the data in the file is checked (double entry), proof-
reading
• (c) Before the merged data can be used to generate
reports it must be validated. State the meaning of the
term 'validation'.
• Validation is the checking of data to make sure it is
complete, reasonable, consistent and within acceptable
boundaries.
• (b) After the data are verified, a program scans the data
entered to validate the data submitted by the students.
State the name of EACH validation check for EACH of the
examples below:
• (i) The student's name does not contain any special
characters
• Answer: Data type
• (ii) The student's date of birth is after 31 August 2000
but before 01 September 2001.
• Answer: Range
Answer:
• Any two of the following:
Range Check – to ensure that the input data is within a
given range. For example, the month number is between
1 and 12 inclusively.
Reasonableness check – to find out if the input data is
realistic. For example, the height of a person is not
above 8 ft.
Data type check – to find out if the input data is of the
correct type. For example, characters only are entered
for a person’s name.
Inconsistency/consistency check – to ensure that the
data entered in one part of the form is consistent with
the data in another part of the form. For example, the
date of birth entered tallies with the present age of the
client.
January 2014
• Classify the following as examples of EITHER verification
OR validation.
• For EACH verification activity, state the purpose.
• For EACH validation activity, state the name of the check.
• (a) You are asked to enter a new password twice.
• (b) Check to verify that letters have been entered instead of
digits on a form ..
• (c) if Check to see the date entered for April is between I
and 30 inclusive.
• (d) Check that the gender of a person is "M", if the title is
"Mr".
• (e) Check to see if the year(yy) is entered as 68 instead of
86.
(a) You are asked to enter a new password twice
• Answer: (a) Verification – To ensure that you have typed
it exactly the same password both times and did not
made a mistake. It verifies that the first version is correct
by matching it against the second version.
Answer:
• Data is entered by one staff member and the same data is
entered by another staff. Both sets of data are then
compared to ensure that they are the same (double
entry).
• Use of proof-reading is also acceptable.
January 2015 Q5
• Answers:
• Original data is the same as data in the computer
• Data is entered twice into the computer and compared to
see if they match
• No human error caused by keying in data
(c) State the names of THREE checks and explain how they
work to ensure that the data entered is valid.
(a) List two types of data entry errors which would occur:
1. Spelling errors
2. Grammatical errors
Answer:
• Inconsistency/consistency - To ensure that the student's
age on the form is correct given the student's date of
birth.
• Range Check – to ensure that the age falls within a given
range. For example, a secondary school student is likely
to be between 11 and 16 years old.
• Data type check - Checks that the data entered is of an
expected type, e.g. number
January 2017 Q6 (e)
• (e) State ONE data check and explain how it can be used
to confirm that the data entered is accurate.
• Answer:
• Data type check—check if the correct type of data is
entered. For example, numeric data should be entered
• Range check— check if data is within a given range.
• Inconsistency check—check to see if the data on the
order are consistent.
• Reasonableness check – check the order to see if it is
reasonable.
Data Required Example of Correct Type of Suitable Explanation of How the Data
Data Entered Data Check Check Works
Gender Male (or M) Consistency Be specific with response
Female (or F) (inconsistency) Male or Female (or some
OR variation to mean that)
Data Type
Date of birth >=01/01/1996 and Range check Relate response here to a
<=01/01/2005 or date and/or specify a range
Data type Check for acceptable age
Or Outline an acceptable format
Format Check for the date (e.g.
mm/dd/yyyy)
Number of 1 or 4 Reasonableness Use a range of devices
mobile devices OR or owned by an individual that
owned 0–4 Data Type (e.g. is realistic or reasonable
number) Ensure your response refers
or to a whole number or integer
Range value
Specify an upper limit and
lower limit for number of
devices owned (e.g. 0 - 3)
Answer
Check Field(s) Reason
Consistency From → Amount -From: Amount of funds is enough in the From Account
Range Amount -Data is within a given range e.g. -Amount <= 5000
Date -Within value limit of month and day
Past CSEC Questions
Classify each of the following examples of EITHER
verification OR validation
For EACH validation activity, state the name of the check.