What are the 5 Input Validation checks?
Range Check
Type Check
Format Check
Presence Check
Length Check
Explain the range check
Checks data is within a certain range, usually numbers
Explain the format check
Checks data is entered in a certain way
Explain the presence check
Checks data has been entered and not left blank
Difference between Input Sanitisation, Validation and Verification
Input Sanitisation is cleaning up input data to reduce redundancy or remove malicious code.
Validation is checking whether input data follows specific criteria and should be accepted.
Verification is checking whether data that has been entered is correct.
What are 5 ways of making a program more maintainable?
Give the main reason for testing and 3 other reasons
Explain a difference between iterative and final testing.
Iterative:
- used when program is being developed
- individually tests each program until it works as expected
Final:
- used when program is finished
- tests with normal, boundary, invalid and erroneous data
- used only after each module has been tested
Define syntax error.
Define logic error.