Examples Flashcards

1
Q

Type check & Example

A

When the program expects only a certain type it reject everything else. (Only letters)

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

Range Check & Example

A

Check that numbers are with in a certain range. (Date, the month has to be between 1-12)

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

Limit check & Example

A

Check that a value doesn’t exceed a limit. (Exam mark % cannot be > 100)

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

Length check & Example

A

Make sure number of characters entered is between a certain number. (Passwords have to be >2 but <15 characters)

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

Format check & Example

A

Check that the input has the right format. (Id cards might need to be 3 letters followed by 3 numbers)

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

Presence check & Example

A

Make sure fields are not left blank. (Email when signing up for a game)

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

Consistency check & Example

A

Entered value is checked against possible answers. (Gender has to be M or F)

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

Check digit & Example

A

All the numbers go through a formula to produce a final digit (ISBN 1,3,1,3)

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