2.3 Flashcards

1
Q

What is validation?

A

The checking of data on input to ensure that it is sensible

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

What is a range check?

A

Checks that a number/date is in the 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

Checks that the data is the right type- integer/character/string

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

What is a length check?

A

Checks that the text entered isn’t too long or too short

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

What is a presence check?

A

Checks that data has been entered

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

What is a format check?

A

Checks that the format is appropriate- postcode, email address, etc

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

What is verification?

A

The input of data twice- If they match, the entry is accepted as valid

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

What is authentication?

A

A process used to test that a person is who they claim to be- e.g biometrics

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

What are some considerations in defensive design?

A

anticipating misuse/ authentication

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

What is the point of indentation?

A

aids readability and is mandatory in some programming languages

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

What is the point of commenting?

A

to help ensure the program can be understood and maintained long after it was written

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

What is the purpose of testing?

A

To ensure that for any input, the program always works correctly

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

What is iterative testing?

A

finding and correcting errors in the program until all tests give the expected results. This is done during development

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

What is final/terminal testing?

A

Carried out by users after the program is completely finished.

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

What should test data include?

A

normal data, boundary data, invalid data, erroneous data

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

What is boundary data?

A

data that includes both ends of an allowed range and data just outside the range which shouldn’t be allowed

17
Q

What is invalid data?

A

Data outside the limits of valid data

18
Q

What is erroneous data?

A

Completely wrong data- like a number when it is meant to be a word

19
Q

What do refining algorithms do?

A

Make programs more efficient- for example, ending the program when there have been no swaps in a single pass reduces the execution time, as there are no unnecessary passes after the list is already sorted

20
Q
A