Database - Input validation Flashcards

1
Q

Input validation

A

Checking something to make sure it’s correct and reasonable. - No errors when data it’s added to a database. - Database is more robust (able to cope with errors)

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

Data type

A

Ensures specific data type e.g. Integer

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

Range check

A

Input is in acceptable range. e.g. Age - between 0 and 122

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

Null check

A

Makes sure a database field isn’t left blank

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

Length check

A

Makes sure input is above/below a length limit. e.g. Minimum length of passwords

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