Robust and Secure Programming (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Robust program definition
Robust program definition
Program that works properly even with unexpected data or hardware
Secure program definition
Secure program definition
Program that ensures only authorised users can access it
Data validation definition
Data validation definition
Checks incoming data meets rules before allowing it through
Range validation definition
Range validation definition
Checks numbers fall within acceptable limits
Length validation definition
Length validation definition
Ensures text has the right number of characters
Presence check definition
Presence check definition
Stops users leaving important fields empty
What validation prevents
What validation prevents
Crashes and unexpected program behaviour
Key limitation of validation
Key limitation of validation
Can check if data follows rules, not if it's actually correct
Why validation is essential for robustness
Why validation is essential for robustness
Users don't always enter expected data; programs need to handle this gracefully
Example validation problem in banking
Example validation problem in banking
Users could withdraw negative amounts or more than their balance
Best practice: validation with loops
Best practice: validation with loops
Keep asking until valid input is received
What validation ensures about data
What validation ensures about data
Data is sensible and expected, not necessarily correct
