Defensive Design Flashcards
1
Q
How can programmers protect their code from errors
A
- anticipate how misuse
- well maintained
- reduce errors
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
3
Q
what is check digit
A
- numerical data entered correctly
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
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