Validation Checks Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a validation check?

A

Validation is a process to check that input data is reasonable or sensible. Frequently used validation algorithms include:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Presence check

A

Used to prevent further progress if a required field is left blank.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Format checks

A

Used to ensure data matches a specific pattern, such as dd/mm/yyyy for a date. Input masks are often used to create format checks on database forms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Length checks

A

Used to ensure an input data string is a sensible length, e.g. number of characters in ‘firstName’ to be between 3 and 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Type check

A

Used to ensure input data is a particular data type, e.g. quantity ordered to be integer or cost to be real.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Range checks

A

Used to ensure input data lies within a specified range, e.g. over time hours to be > 0 and < 15.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly