paper 2 section 9 Flashcards
Verification
The input of data twice
Inputs are compared
If they match, entry is accepted as valid
Normal Data
Data that the program should accept
Maintainability - Subprograms
Can reuse code, making it quicker to develop
Easier to maintain as code is shorter
Maintainability - Naming Conventions
Help to identify names within code and readability
Indentation aids readability, and is sometimes mandatory
Maintainability - Commenting
Used to document for yourself and others
Includes purpose of program, complex parts of code, purpose of subprograms
Helps ensure program can be understood and maintained well after being written
Iterative Testing
Done during development
Tests each piece of code as soon as it is written
If it works, move on to next piece
Invalid/Erroneous Data
Data that shouldn’t be accepted by program
Input Validation - Type Check
Data is the right type such as an integer, chracter or text string
Input Validation - Range Check
A number or date is within allowed range
Input Validation - Presence Check
Checks that data has been entered, fields haven’t been left blank
Input Validation - Length Check
Text entered isn’t too long or too short
Input Validation - Format Check
Checks format of data is appropriate - postcode, email
Input Validation
The checking of data on input to make sure it is sensible or reasonable
Final Testing
Done when code is finished and iterative testing has been completed for each piece of code
Make sure it works as intended
Boundary Data
Upper and lower bounds of accepted data