2.3 – Producing robust programs Flashcards

1
Q

What is Anticipating Misuse?

A

The ability of a programmer to consider how the end user might accidently (or on purpose) break the program and then to write additional code to handle these situations
(Exception handling)

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

What is Authentication?

A

Verifying a user identity before they can use a program

e.g. with a username and password

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

What are Comments?

A

Used by a programmer to explain sections of code making the program more readable

Comments are ignored by the compiler

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

What is Maintainability?

A

Techniques that make code easy to debug, update and maintain

e.g. using descriptive variable/subroutine names, using comments etc.

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

What is Validation?

A

Checking data input by the user meets specific criteria before processing
eg. range check, type check, presence check etc

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

What is Boundary Test Data?

A

Data that is at the edge of validity
eg month 1-12, 0 1 12 & 13 are boundary cases

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

What is Erroneous Test Data?

A

Data of the incorrect type which should be rejected by a computer system
eg. ‘january’ input when month is 1-12

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

What is Final/Terminal Testing?

A

Testing that all the modules of a program work together as expected /
Checking the program meets the expectations of the user with real data

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

What is Invalid Test Data?

A

Data of the correct type but outside accepted validation limits
eg. asks for num 0-100, invalid data includes a letter, symbol, decimal etc.

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

What is Iterative Testing?

A

Each module of a program is tested as it is developed

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

What is a Logic Error?

A

The program runs but does not give the expected output

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

What is Normal Test Data?

A

Data supplied to a program which you would expect
eg. scores 0-100, normal data could be 32, 40, 82 etc.

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

What is a Syntax Error?

A

Rules of the language have been broken (ie. misspell, forgotten :)
The program will not run

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

What is Test Data?

A

Values used to test a program under a variety of situations and states

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

What is Testing?

A

Checking a program works as intended:
- Does not contain logic errors
- Acceptable performance/usability
- Preventing unauthorised access
(or meets requirements)

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

What is Defensive Design in program production?

A

Handling all likely inputs & invalid data

17
Q

What is a Naming Convention?

A

A standard adopted for naming data structures and subroutines for consistency
eg. camelCase or medial capitals