levo

Data, Information and Data Representation

Validation: format checks and lookup checks

  • 3 things to know
  • AS Unit 2
Start revising · £5/month

Overview

Format check, lookup check and risk of making validation rules too strict.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why are several validation checks usually applied to a single field?

Key term

What is a format check?

Key term

Which pattern would a format check apply to a date entered as day, month and year?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a format check?

    Model answer

    A format check confirms that an entry follows a set pattern of letters, digits and punctuation laid down for that field.

  2. 2

    Which pattern would a format check apply to a date entered as day, month and year?

    Model answer

    A date field can be checked against a pattern of two digits, a separator, two digits, a separator and four digits.

  3. 3

    Give an example of a format check applied to a vehicle registration.

    Model answer

    A registration can be checked against a pattern of two letters, two digits, a space and three letters, so an entry with the letters and digits in the wrong positions is refused.

  4. 4

    Why is a format check sometimes called a picture check?

    Model answer

    The required pattern is written out as a picture of the entry, with a symbol standing for each allowed character position, and the check compares what was typed against that picture.

  5. 5

    What is a lookup check?

    Model answer

    A lookup check confirms that an entry appears in a stored list or table of acceptable values, and refuses anything that is not on the list.

  6. 6

    Give an example of a field well suited to a lookup check.

    Model answer

    A county field is well suited to a lookup check, because only the recognised county names are acceptable and every one of them can be held in a table.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A check requires a value.
presencerangeformat

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data, Information and Data Representation, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.