Data Validation/Program Testing Flashcards
1
Q
Data Verification
A
To ensure the data entry exactly matches the original source
2
Q
Types of verification?
A
- Double Entry: Enter data twice and compare the two copies
- Proofreading: Have a person check the data entered against original document
3
Q
Types of validation?
A
- Presence Check: Ensure data is entered
- Type Check: Ensure suitable data type
- Format Check: Ensure data matches a required arrangement or pattern
- Length Check: Ensure correct number of characters
- Range Check: Ensure within predetermined range
- Check Digit: Allows data to be self-checking
4
Q
Data Entry Errors
A
- Transcription Errors: Typographical mistakes
- Transposition Errors: Two or more characters positions are accidentally swapped
5
Q
Error Types
A
- Syntax: When code does not follow syntax rule of the programming language (e.g. misspelling statements or unmatched parenthesis)
- Runtime: takes places during execution of program
- Logic: program runs but does not do what it is expected to do
6
Q
Types of runtime error?
A
- Input error
- Index out of Bound error
- Undeclared variable error
- Arithmetic error
- Out of Memory error