What is the purpose of validation?
To ensure that data entered is sensible and possible
To ensure that data entered is correct
To ensure that the programmer has met all requirements
What does validation not do?
Ensure that data entered is of the right data type
Ensure that data is actually entered
Ensure that data entered is correct
Which of the following are validation techniques?
Presence checks, length checks, verification checks
Presence checks, format checks, range checks
Presence checks, range checks, verification checks
What type of validation check ensures that input falls within a specified range?
Range check
Presence check
Length check
What type of validation check would be used to specify that a surname will require at least one letter, but is unlikely to require more than 40?
Which validation technique ensures that important fields are not left blank?
How do websites often authenticate that a user's email is correct when they sign up for a new account?
By sending an email that the user has to receive and click on to activate the account
By asking them security questions only the valid user will know
By using a length check to make sure it is a suitable length for an email address
When creating a program that requires the user to enter a number within a range, how can this be implemented?
Using a clear instruction and assuming the user inputs a number within the specified range
Using a loop which keeps asking the user to input numbers until they enter valid data
Using a thank you message once they enter a number within range
What technique is often used to check passwords?
Validation
Verification
Instruction
Which of these is not a method for authenticating a user's identity when they are attempting to gain access to a system?
PIN
Facial recognition
Format check