Input Validation (OCR GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is the main purpose of input validation?
What is the main purpose of input validation?
To ensure data is sensible and reasonable
What does input sanitisation do?
What does input sanitisation do?
Cleans data to remove harmful characters
Which check uses the last digit(s) to verify other digits are correct?
Which check uses the last digit(s) to verify other digits are correct?
Check digit
What does a format check ensure?
What does a format check ensure?
Data follows a specific format
A password must be exactly 8 characters long. What type of validation is this?
A password must be exactly 8 characters long. What type of validation is this?
Length check
Which validation check uses a predefined list of valid values?
Which validation check uses a predefined list of valid values?
Lookup table
What does a presence check ensure?
What does a presence check ensure?
Data is entered in a required field
A person's age must be between 0 and 120. What type of validation is this?
A person's age must be between 0 and 120. What type of validation is this?
Range check
What type of attack does input sanitisation help prevent?
What type of attack does input sanitisation help prevent?
SQL injection
In username validation, what does isalnum() check for?
In username validation, what does isalnum() check for?
Only letters and numbers are used
What is the minimum password length mentioned for password validation?
What is the minimum password length mentioned for password validation?
8 characters
What does a simple authentication system verify?
What does a simple authentication system verify?
User input matches predefined credentials
