Validation Flashcards

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

What happens if data isn’t validated?

A

if inputted data doesn’t follow the rules it is rejected

this reduces the risk that incorrectly entered data might crash a program

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

range check

A

the data must fall within a specified range

can apply to numbers and characters

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

length check

A

the input must not be too long or too short

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

presence check

A

a data value must be entered

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

format check

A

the data must be in the correct format, such as entering a date in the format DD/MM/YYYY

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

type check

A

the data must be of a specific data type, such as an integer

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

What does validation not do?

A

ensure that data entered is correct

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

verification checks

A

repeat the entered data to the user and ask them to confirm if it is correct

this helps reduce errors from incorrect data

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