Skip to content
Cambridge AS & A Level9626

Checking the accuracy of data

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Checking the accuracy of data notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Checking the accuracy of data notes as text: skim, search, and jump between subtopics.

~13 min read

1. Presence, type, length and format checks

Validation is a check that the data entered obeys a rule. It tests whether data is allowed. It does not test whether data is correct.

A presence check tests that there is data present in this field, so it cannot be left empty. A type check tests that data is of the right type, such as numeric or text only. A length check tests the number of characters, such as exactly 7 characters. A format check tests a pattern, such as two letters followed by 5 digits.

Use the check the context supports. A length check needs a known length and a format check needs a known pattern. A telephone number with a leading zero is held as text, not as a number.

Examiner insight

“The difference between type check and format check was frequently not well understood.” “Some candidates thought you could apply a range check to the length of a text field.”

Worked example 14 marks

A college database contains details about students. Part of the database is in the table.

Identify and describe two validation checks that are suitable to use on the StudentID field.

StudentIDFirstNameFamilyNamePhoneNumber
AB37689MohammedAbbas016324908367
AH83965JonathanOlsen016328332901
BV72189SuzanneUsher016325599100
DY64817HuaOwyang016323652331
KT52964IsabellaMancini016328899477
PS54200BenQuansah016329677901
  1. 1

    Length check [1]

  2. 2

    checks that the length of the data is exactly 7 characters [1]

  3. 3

    Format check [1]

  4. 4

    checks that each item begins with two letters followed by 5 digits [1]

2. Range, limit, lookup, consistency and check digit

A range check tests that a value is between two figures, so it needs a lower and an upper value. A limit check tests a value against one figure only: not below or above a certain figure.

A lookup check tests the data against a list of values. A consistency check can make sure no duplicate records exist for the same student number against the same examination. A check digit on a student number helps detect typos made during entry.

An answer must name the check, then say what is allowed in the question's own context.

Examiner insight

“A range check has an upper value and a lower value. Both must be stated. A limit check has one value.” “Many responses suggested a form of lookup validation. This would not be acceptable, as the account numbers are for new customers and so would not exist.”

Worked example 18 marks

Teachers at a school store records of their students and their examination scores on a computer system.

Each examination is marked out of 120. Each student at the school has a unique student number, such as L35725 or Z83499.

The system already uses presence checks on the student number and examination scores.

Justify additional validation checks that could be used on the student number and the examination scores.

  1. 1

    Format check on the student number [1]

  2. 2

    to ensure student numbers start with a letter followed by 5 digits [1]

  3. 3

    Check digit on the student number [1]

  4. 4

    to help detect typing errors during entry of student numbers [1]

  5. 5

    Lookup check on the student number [1]

  6. 6

    to verify that the student number belongs to a student registered at the school [1]

  7. 7

    Range check on the examination score [1]

  8. 8

    to ensure the score is between 0 and 120 [1]

3. Verification methods

Verification checks that data has been entered or copied accurately. In visual checking a person compares the data with the source document. In double data entry the data is entered twice and the computer compares the two copies.

Visual checking is done by a person. Double data entry is done by the computer, which only involves the user if it finds a difference.

For data sent from one place to another, a value is calculated before sending and recalculated after. If the two values differ, an issue is reported. If they match, there is no issue with the transfer. A parity check counts the number of 1s in each byte and sets an extra bit to 1 or 0. It is only useful when data is transferred from one device to another. A checksum uses a hash function, which takes the file and produces a number. A hash total is calculated from the content of every field. A control total is calculated from the fields holding numerical data.

Examiner insight

“Of those that did, many confused the terms bits and 1s.” “Candidates should be aware of the suitability of parity checking and that this type of check is only useful in transferring data from one device to another.”

Worked example 13 marks

Describe how a control total is used to verify data.

  1. 1

    The control total is a calculated value, found by adding the numeric data in the file, and it is added to the file to be transmitted [1]

  2. 2

    The control total is recalculated when the file has been transmitted [1]

  3. 3

    The two totals are compared: a difference means the data has changed [1]

4. Validation against verification, and why both

Validation checks that data obeys a rule, such as being in range. Verification checks that data entered is the same as the source, or has not changed in transfer.

Data can pass validation and still be wrong. A wrong day in a date of birth is still a real date, so it passes. Only a comparison with the source finds it. Validation, in turn, rejects data that breaks a rule, such as a month of 13. The two catch different errors, so both are needed.

Examiner insight

“Whilst many responses showed a good understanding of the purpose of validation and verification methods, few responses attempted to explain why both were needed.” “Many candidates appeared to think that the question was asking the purpose of verification and gave an answer to that question.”

Worked example 14 marks

A school office types each student's year of birth into a database from a registration form. A range check rejects any year outside 2008 to 2013. A clerk types 2011 where the form says 2010.

Explain why the school needs both validation and verification.

  1. 1

    Validation checks that the data obeys a rule, here that the year is between 2008 and 2013 [1]

  2. 2

    2011 is inside the range, so validation accepts it even though it is wrong [1]

  3. 3

    Verification checks that the data entered is the same as the source document [1]

  4. 4

    Double data entry or visual checking would find that 2011 differs from 2010 on the form; validation would reject only years outside the range, such as 2031 [1]

5. Advantages and disadvantages

Validation checks are included to reduce data entry errors: data that breaks a rule is rejected. Its limit is that data inside the rule can still be wrong, and a check only works if it suits the data.

Visual checking needs the data to be entered only once, but a person can miss an error through human error. Double data entry is more accurate because the computer does the comparing. It is slower, as the data is entered twice.

Examiner insight

“Candidates who failed to achieve marks usually did so because they gave a definition of visual checking, rather than answer the question.”

Worked example 14 marks

In a school, a student needs to include sections from books in an essay he is writing. Each section must be an exact copy of the section in the source material.

Compare the use of visual checking and double data entry to verify the sections used. You must include similarities and differences in your answer.

  1. 1

    Both methods check that the information entered matches the original source [1]

  2. 2

    Neither method checks if the source data is correct [1]

  3. 3

    Double data entry is more accurate: visual checking may be affected by human error [1]

  4. 4

    Visual checking is carried out by a person; double data entry is done by the computer [1]

Recap

  • Validation checks data obeys a rule. Verification checks data matches its source.
  • Name the check, then say what it allows in the question's own data.
  • A range check has two values and a limit check has one.
  • Parity counts 1s. Checksum, hash total and control total are recalculated and compared.
  • Passing validation does not make data correct, so both are needed.
  • Double data entry is more accurate than visual checking but slower.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Name the validation check that makes sure a field is not left empty.1 mark
    Answer
    1. Presence check.

    Trap: A length check tests the number of characters, not whether data is there.

  2. State the difference between validation and verification.2 marks
    Answer
    1. Validation checks that the data entered obeys a rule.
    2. Verification checks that the data entered is the same as the source.

    Trap: Saying verification makes sure data is correct. It checks only the match with the source.

  3. A form field for the number of tickets accepts only whole numbers. Name the check and give one entry it rejects.2 marks
    Answer
    1. Type check.
    2. It rejects text such as four, or a decimal such as 2.5.

    Trap: A format check tests a pattern. A type check tests the kind of data.

  4. A product code is one letter followed by four digits, such as K4821. Identify and describe two validation checks for the product code.4 marks
    Answer
    1. Format check.
    2. It checks the code is one letter followed by four digits.
    3. Length check.
    4. It checks the code is exactly 5 characters.

    Trap: A range check needs a lower and an upper figure, and a code has none.

  5. A test is marked out of 80, with 0 the lowest mark. Describe a range check for the mark. State what a limit check would use instead.3 marks
    Answer
    1. A range check tests that the mark is between 0 and 80.
    2. Both ends are stated.
    3. A limit check uses one figure only, such as not above 80.

    Trap: A range check with only one value is a limit check.

  6. A system uses even parity. The parity bit is added at the end of the seven data bits 1101011. (a) State the parity bit. (b) The byte 11010011 is received. State whether an error is detected, and why.3 marks
    Answer
    1. (a)
    2. The data bits hold five 1s, so the parity bit is 1 to make six.
    3. (b)
    4. 11010011 holds five 1s, which is odd.
    5. An error is detected.

    Trap: Count the 1s, not the bits.

  7. The payments 12, 30, 8, 45 and 5 are sent in a file with a control total. After transmission the amounts add to 109. Show that the data has changed.2 marks
    Answer
    1. Control total before sending = 12 + 30 + 8 + 45 + 5 = 100.
    2. The recalculated total is 109, which differs from 100, so the data has changed.

    Trap: The total must be recalculated after transmission and compared.

  8. A clerk copies 200 invoice numbers from paper into a database. Compare visual checking and double data entry for verifying them.4 marks
    Answer
    1. Both check that the entry matches the paper source.
    2. Visual checking is done by a person. Double data entry is compared by the computer.
    3. Double data entry is more accurate, as a person can miss an error.
    4. Double data entry is slower because the numbers are entered twice.

    Trap: Proof reading is not verification: verification compares with the source.

  9. A shop sends a file of three orders to its warehouse. Each record holds an item name and a quantity: Lamp 4, Desk 2, Chair 6. A control total is added to the file. (a) Calculate the control total. (b) After transfer the records read Lamp 4, Disk 2, Chair 6. The control total is recalculated and compared. State the result and explain why. (c) Identify and describe a method of verification that would detect this change.5 marks
    Answer
    1. (a)
    2. Control total = 4 + 2 + 6 = 12.
    3. (b)
    4. The recalculated total is also 12, so the totals match and no issue is reported.
    5. A control total is calculated only from the fields holding numerical data, so a change to an item name is not detected.
    6. (c)
    7. Hash total.
    8. It is calculated from the content of every field, so the recalculated value no longer matches the original and an issue is reported.

    Trap: Thinking matching control totals prove the whole file arrived unchanged: a control total covers only the numerical fields.

  10. A clinic registers new patients. Each new patient is given a patient number of P followed by 6 digits, and their height is entered in cm. A range check accepts heights from 40 to 220, and a format check is used on the patient number. A clerk types P305118 where the form says P305181, and 172 where the form says 127. (a) A colleague suggests a lookup check on the patient number. Explain why this is not suitable. (b) Explain why validation accepts both errors. (c) Identify a verification method that would find them, and give one disadvantage of it.6 marks
    Answer
    1. (a)
    2. The patients are new, so their numbers do not yet exist in any list to look up.
    3. (b)
    4. 172 is between 40 and 220, so the range check accepts it.
    5. P305118 is P followed by 6 digits, so the format check accepts it.
    6. Validation tests only that data obeys a rule, not that it is the same as the source.
    7. (c)
    8. Double data entry: the data is entered twice and the computer compares the two copies, so 172 and 127 (and the two patient numbers) are found to differ.
    9. It is slower, as the data must be entered twice.

    Trap: Thinking validation stops a wrong number being typed: a wrong value that obeys the rule passes, and a lookup cannot check a number that does not exist yet.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
A range check makes sure the score is below 120.A range check has a lower and an upper value: the score is between 0 and 120.
A limit check makes sure no more than 6 characters are entered.A length check tests the number of characters. A limit check tests one figure.
Verification makes sure the data is correct.Verification checks that the data entered is the same as the source.
Proof reading is a method of verification.Visual checking compares the data entered with the source document.

Frequently asked questions

What is the difference between validation and verification?
Validation checks that the data entered obeys a rule, such as being in range. It tests whether data is allowed, not whether it is correct. Verification checks that the data entered is the same as the source, or that it has not changed in transfer.
What is the difference between a range check and a limit check?
A range check tests that a value is between two figures, so it needs a lower and an upper value. A limit check tests a value against one figure only, so it is not below or above a certain figure. A limit check has one value; a range check has both.
What are presence, type, length and format checks?
A presence check tests that data is present in the field, so it cannot be left empty. A type check tests that the data is of the right type, such as numeric or text only. A length check tests the number of characters. A format check tests a pattern, such as two letters followed by 5 digits.
How do a parity check and a control total verify data?
A parity check counts the number of 1s in each byte and sets an extra bit to 1 or 0. A control total is calculated from the fields holding numerical data before sending, and recalculated after. If the two values differ, an issue is reported.
Which is more accurate, visual checking or double data entry?
Double data entry is more accurate than visual checking, because the computer does the comparing and a person can miss an error through human error. It is slower, because the data is entered twice. Visual checking needs the data to be entered only once.
Why is it wrong to say that verification makes sure data is correct?
Verification does not make data correct. It only checks that the data entered is the same as the source. Data can pass validation and still be wrong, for example a wrong day in a date of birth, so both checks are needed.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters