Defensive Design Flashcards

1
Q

What is data validation?

A

Ensuring that data is of the right type and is reasonable.

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

What is a range check?

A

That the data is between an allowed range.

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

What is a type check?

A

Ensuring data is of the right type. String, Integer etc

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

What is a length check?

A

Making sure that entered data is of the allowed/sensible length

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

What is a presence check?

A

Checking that a field has not been left blank.

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

What is a format check?

A

Making sure that data is in the correct format, e.g. for a postcode or address.

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

What is the difference between 1. Validation and 2. Verification?

A
  1. Validation is checking that data is resonable.
  2. Verification is confirming that data is correct, making sure the user has entered the right information.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a subroutine?
1. Function
2. Procedure

A

A subrotuine is a resuable executable such as a function.
1. A function will always return a value
2. A procedure will not return anything but always does something.

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