Skip to main content
O-LevelComputer ScienceProgramming2210/22 · May/June 2018 · Q46 Marks

4 A programmer has written a routine to store the name, email address and password of a contributor to a website's discussion group.

  1. (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]
  2. (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.

  1. [4] Max 4 in total
  2. Any 3 from:
  3. • To ensure no changes are made on input / accuracy of transcription
  4. • Because the details do not have fixed, values or lengths to validate
  5. • Because there is no clear set of rules that can be used for validation
  6. Any 3 from:
  7. • The programmer could ask the contributor to type in each detail twice ... and then check that both values are equal
  8. • If they are not equal then the input should be rejected
  9. • The programmer could ask the contributor to check the details on the screen ... and confirm that they are correct / same as the original
  10. • ... or change them
  11. [2] One mark for email and one mark for password
  12. Email - check for @ / format check / no spaces /valid characters // presence check // length check (not more than 254 characters) // uniqueness check
  13. 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 →

About this question

Topic
Programming, O-Level Computer Science (syllabus 2210). Structured question, 6 marks.
Source
O-Level Computer Science, May/June 2018 Paper 2 Variant 2, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep