2.6.1 Different types of input validation/Write, interpret and debug code that uses validation techniques Flashcards

1
Q

Define:

Input validation

A

Checks made to ensure that data entered is sensible and reasonable.

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

Fill The Blank:

Abnormal inputs or conditions are dealt with using ……….. ………………

A

Error Checking

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

Fill The Blank:

Error messages must be ………. and provide users with the options available to ………… any issues. This is different to exception handling.

A

Clear, Resolve

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

Define:

Presence Check

A

Check to see if a required field that should contain data, has been left blank

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

Define:

Length Check

A

Ensures that data entered does not contain fewer or more characters than the specified minimum or maximum number

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

Define:

Type Check

A

Ensure that is input is of the correct data type

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

Define:

Format Check

A

Used to verify that the data input is of the correct format.

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

Define:

Range Check

A

Verify that an inputted value lies between a range of set values

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

Define:

Check Digit

A

An extra value transmitted with data to determine if it is correct or not

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