2.3 Robust Programming Flashcards
What is validation and what does it do?
Validation is a check made by the computer to see if the data entered is sensible and reasonable.
What is anticipating misuse used for?
This is used to lock out the user if they type in a incorrect password 3 or more time. An example would be if someone spammed a chat, it would lock them out for a few seconds.
What is authentication and give examples.
Authentication checks to see who you say you are, e.g. fingerprint, iris, email authentication.
What is input sanitization?
Removes unwanted characters from string. Example- Dave not Dav3
Describe maintainability.
Programs are maintained to fix errors and defend against attacks.
What are the two types of testing?
Iterative and Final/Terminal
What is Iterative testing?
Iterative testing is testing the code as you create it/as you’re going along.
This could be done line by line.
What is terminal testing?
Final or terminal testing is done when you have finished coding the program. It is used to check what happens when predefined test data is entered or used in a program.
Give an example of a type of error.
Syntax, Runtime, Logic
What is a runtime error?
Runtime errors are errors which may cause program errors or the computer to crash even if there appears to be nothing wrong with the program.
What are syntax errors?
Syntax errors are mistakes in the way the code is written.
What are logic errors?
Logic errors are a bug in the program that causes it to operate incorrectly, but not to terminate or crash.