Watch and follow the YouTube video, the lesson contains three parts:
Key Information and content - all you need to do here is watch and listen
Learning activity - there are two activities to complete. One task is a validation matching exercise, the second is a code commenting task, where you are showing understanding of how the input sanitisation works.
Consolidation - these are past exam question and are for deliberate practice to check your understanding.
Input sanitisation (1 mark)
...cleaning up input data / removing unwanted data
...by example (e.g. removing special characters / preventing SQL injection)
Validation (1 mark)
• ...checking whether input data should be allowed / is sensible / follows criteria
• ...by example (e.g. goals cannot be less than 0)
Verification (1 mark)
• ... checking whether data has been entered correctly
• ...by example (e.g. double entry / visual check)
Authentication (1 mark)
• ...ensuring only allowed / authorised users can gain access
• ...by example (e.g. usernames /passwords)
Maintainable code (1 mark)
• ...to allow other programmers to understand the code
• ...by example(e.g. comments, indentation, meaningful variable names)
1 mark per bullet max 1
Easier to remember / to enter / to read
Faster to enter / read
Fewer digits to remember / to enter / to read
Less prone to error when entering / reading / communicating
Quick to convert into binary
Do not accept "easier to understand"
Existence check
Male/Female
No other entry possible
Range check
must be a (real) number
Must be positive