Producing Robust Programs Flashcards

1
Q

What are the defensive design considerations

A
  • Anticipating misuse
  • Input sanitisation
  • Validation
  • Verification
  • Authentication
  • Maintainable code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the input validation

A
  • Range check
  • Type Check
  • Format check
  • Presence check
  • Lookup table
  • Length check
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can a program be maintained

A
  • Using identation to improve readibilty
  • Appropriate variable names
  • Comments enable programmer to understand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why are programs tested?

A

Ensures a program works correctly, errors have been removed and the program doesnt crash whilst running

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

What are the differences between iterative and final testing

A

Iterative: takes place during program development, by developing a module tests it and repeats it
Final: after development and before the program is released - all modules are individually tested

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

What is a syntax error

A

A mistake in the spelling or grammar by preventing a program from being compiled.

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

What is a logical error

A

The program works but displays the wrong output

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