Robust Programming Flashcards
What is validation?
This is a check made by the computer to ensure the data entered is reasonable and valid.
What is authentication?
This is when the program checks that the user is real or that it is not someone trying to hack an account.
Name three types of validation.
Check digit, Format check, Length check, Lookup table, Presence check, Range check, Spell check.
What is input sanitization?
This makes sure you don’t make any mistakes like no capital letters in names or two decimal points in money.
What is a runtime error?
These are errors which may cause program errors or the computer to crash even if there appears to be nothing wrong.
What is a syntax error?
Syntax errors are mistakes in the way code is written.
What is a logic error?
A logic error is a bug in the program that causes it to operate incorrectly but not to terminate or crash.
What is iterative testing?
Iterative testing is where you test the code as you make it. For example a section at a time.
What is final testing?
This is when you test at the end after you have coded the program.
Name two examples of maintainability.
Comments, Indentation, Spacing.