Defensive Design Flashcards

1
Q

How can programmers protect their code from errors

A
  • anticipate how misuse
  • well maintained
  • reduce errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you prevent inputs from being exploited

A
  • input sanitisation = remove unwanted characters

- input validation = make sure meets criteria before pass on

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

what is check digit

A
  • numerical data entered correctly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is authentication and give me a example

A

confirm the identity using strong passwords change regularly limit the attempts ask random selection of characters

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

how can a program be maintained

A
  • comments: explaining key features: well written clear for understanding
  • indentation: separate statements allow flow
  • variables: programmers keep track and recognise variables throughout
How well did you know this?
1
Not at all
2
3
4
5
Perfectly