Programming theory Flashcards
1
Q
Name and explain the type of errors
A
- Logic error: Complier can understand, but returns an undesired result
- Runtime error: Complier can understand the code, however is unable to execute the code, resulting in an unexpected exit during execution
- Syntax error: Complier unable to understand, and thus unable to execute
2
Q
Name and explain the types of test cases
A
- Normal test: input which programs expects to encounter and handle
- Abnormal test: input which falls outside the set of acceptable values and program expected to raise an error message/handle the error
- Extreme test: input which falls at the extreme ends of the acceptable set of values, where special handling could be required
3
Q
What is data validation?
A
Data verification checks that data entered meets a set of requirements before further processing
4
Q
What is data verification?
A
Data verification ensures that data entered is what the user intended to enter
5
Q
State the techniques of data validation
A
- Range check
- Format check
- Length check
- Presence check
- Check digit
6
Q
State the techniques of data verification
A
- Double entry
- Visual Check