4 A programmer has written a routine to store the name, email address and password of a contributor to a website's discussion group.
- (a)The programmer has chosen to verify the name, email address and password. Explain why verification was chosen and describe how the programmer would verify this data.[4]
- (b)The programmer has also decided to validate the email address and the password. Describe validation checks that could be used. Email address Password[2]
Mark scheme
Marking points from the official mark scheme (May/June 2018). The mark or mark type is shown in brackets.
- [4] Max 4 in total
- Any 3 from:
- • To ensure no changes are made on input / accuracy of transcription
- • Because the details do not have fixed, values or lengths to validate
- • Because there is no clear set of rules that can be used for validation
- Any 3 from:
- • The programmer could ask the contributor to type in each detail twice ... and then check that both values are equal
- • If they are not equal then the input should be rejected
- • The programmer could ask the contributor to check the details on the screen ... and confirm that they are correct / same as the original
- • ... or change them
- [2] One mark for email and one mark for password
- Email - check for @ / format check / no spaces /valid characters // presence check // length check (not more than 254 characters) // uniqueness check
- Password - length check / numbers and letters etc. // uniqueness check not been used before // presence check
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →