Producing robust programs Flashcards

1
Q

What defensive design considerations are there?

A

Anticipate misuse
Authentication to make sure the user is legit

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

What is input validation?

A

Checking that data is sensible

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

What are the types of input validation(5)?

A

Range
Type
Length
Presense
Format

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

How do you improve maintainability?

A

Use correct naming conventions
Use subprograms
Use comments
Indent

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

What is the point of testing?

A

To ensure that for any input, the program works right

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

What are the types of testing?

A

Iterative, carried out using a plan during the development stage.
Final testing, carried out when the program is completely finished and all parts of it have been tested

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