Validation Flashcards

(6 cards)

1
Q

Name some validation methods

A
  • presence check
  • format check
  • range check
  • data type check
  • length check
  • fixed value
  • check digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a presence check

A

It is when data Is required and must be entered -when submitting a website order you must enter your email address

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

Define range check and give an example

A

It is when data must be between stated ranges eg the numbers of a month should be between 1 and 12

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

Define length check and give an example

A

It is when data must have a certain number of characters or numbers eg when you have a credit card it must have 16 numbers as the card number

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

Define format check and give and example

A

It is when data must be in the correct format eg a postcode must be in the format Lk2 4DB

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

Define validation

A

Validation is a computer check to ensure that data is sensible but not nesseserily correct

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