robust programing Flashcards
what is data validation
validation is a check made by a computer to ensure that the data entered is sensible or reasonable
can data validation correct mistakes
no
what is data sanitisation
this automatically corrects you code
how is input sanitisation different to validation.
it is different because it only checks for what is wrong and notifies you unlike input sanitisation which makes changes to the problem
what is maintainability.
if a program is to be defensive against attacks then is has to be maintained and up to date.
what are the two types of testing
iterative is testing the code as you create it
what is an syntax error
error in which the code is written
what is a logic error
when your program doesn’t run how you want it to
name three different types o authentication
key cards
email
administrator
name there types of data validation
incorrect username
incorrect password
wrong birth date
how can you mitigate misuse
- limiting the log on attempts
- ensuring the code is robust in validating the cade entered
- another method used is authentication.
what is a presence check
checks that data has been entered into a field
range check
checks that a value falls within the specified range
what is a spell check
looks up word in a dictionary
what is a format check
checks the data isn’t too short or too long