Validation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

Last updated 4:00 PM on 4/11/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

Valid data

Data that is within the limits of what a user might sensibly or reasonably enter.

2
New cards

Validation

Automatic checking of data (checked by system), to ensure only possible, sensible, reasonable data is accepted.

3
New cards

How should good code approach validation?

Code should always be tested with data samples from as many of the following types: normal, boundary, abnormal, erroneous. It data is rejected, a message should explain why, and another opportunity to answer should be given.

4
New cards

Normal data

Data that is sensible and should be accepted.

5
New cards

Boundary data

Data that is right at the very edge of the accepted range.

6
New cards

Abnormal data

Valid data that falls outside of the accepted range.

7
New cards

Erroneous data

Data that is outside of the accepted range.

8
New cards

Range

Number must be in a specified range, e.g. between 0 and 100 inclusive.

9
New cards

Length

Length of inputted characters must match specified number of characters, e.g. 8 characters long / between 2 and 30 characters long

10
New cards

Type

The data inputted must be of the correct data type: it must follow rules related to whether it is numbers or letters, e.g. number of siblings must be an integer

11
New cards

Look-up

A specific character must be / must not be included, e.g. an @ in an email address / a % in name.

12
New cards
13
New cards

Often coded with lists of data

14
New cards

Format

Ensures the data entered is in the correct format required, e.g. an date as 00.00.0000

15
New cards

Presence

Ensures some data has been entered, e.g. a phone number in a form

16
New cards

Uniqueness

Used to check data such as an email address or username are unique within a system.

17
New cards

Where is validation written into?

Programmes for: Database data entry, Online data entry to forms on websites, Data entry to kiosks (at train stations / ATMs)

18
New cards

ANSWERING TEST DATA QUESTIONS

  1. State the type of data (e.g. normal)
19
New cards
  1. Give an actual example
20
New cards
  1. State whether it will be accepted/rejected.
21
New cards
22
New cards

"Abnormal data would be 20 and it should not be accepted."