Input Validation (OCR GCSE Computer Science): Quizzes

📚Quizzes
Input Validation
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is the main purpose of input validation?

To ensure data is sensible and reasonable

What does input sanitisation do?

Cleans data to remove harmful characters

Which check uses the last digit(s) to verify other digits are correct?

Check digit

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?

Length check

Which validation check uses a predefined list of valid values?

Lookup table

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?

Range check

What type of attack does input sanitisation help prevent?

SQL injection

In username validation, what does isalnum() check for?

Only letters and numbers are used

What is the minimum password length mentioned for password validation?

8 characters

What does a simple authentication system verify?

User input matches predefined credentials

Explore OCR GCSE Computer Science Revision Notes by Topics

Explore OCR GCSE Computer Science Model Answers by Topics

Explore OCR GCSE Computer Science Flashcards by Topics

Explore OCR GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.