levo

Validation, Verification and Testing

Validation and verification of data in databases

  • 3 things to know
  • Component 1

Overview

Input mask, purpose of a required property on a database field and referential integrity acting as a validation check.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Where are validation rules best stored in a database application?

Key term

How does choosing a field data type act as validation?

Key term

What is an input mask?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Where are validation rules best stored in a database application?

    Model answer

    Validation rules belong in the database itself rather than in each program that uses it. Every application then enforces exactly the same rules.

  2. 2

    How does choosing a field data type act as validation?

    Model answer

    A field declared as an integer or a date rejects any value of another type. The check is enforced by the database management system for every insert.

  3. 3

    What is an input mask?

    Model answer

    An input mask is a stored pattern that forces an entry into a fixed layout. A date field can be masked so only two digits, two digits and four digits are accepted.

  4. 4

    Explain the purpose of a required property on a database field.

    Model answer

    A required field cannot be left null when the record is saved. The property implements a presence check at table level.

  5. 5

    How does a validation rule differ from validation text in a database?

    Model answer

    A validation rule is the condition the value must satisfy, such as greater than zero. The validation text is the message shown to the user when that condition fails.

  6. 6

    Which integrity rule stops a foreign key pointing at a record that does not exist?

    Model answer

    Referential integrity means every foreign key value must match an existing primary key. Orphan records that point at nothing are therefore impossible.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

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

Every question in Validation, Verification and Testing, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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