Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · Oct/Nov 2023 · Q27 Marks

A type of validation check is a length check. Another type of validation check is used to make sure that any date entered is in the dd/mm/yyyy style: dd means day, mm means month and yyyy means year.

  1. (a)State the type of validation check used.[1]
  2. (b)Give one example of normal test data and one example of abnormal test data you should use to make sure the check in part (a) is working properly. State a reason for each of your choices of test data. Normal Reason Abnormal Reason[4]
  3. (c)Describe how a length check could be used with the date entered.[2]

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2023). The mark or mark type is shown in brackets.

  1. [1] Format check
  2. [4] One mark for each appropriate test data, max two
  3. One mark for each correct accompanying reason, max two
  4. For example: Normal - 30/12/1960 ... Reason ... (the date is written in the correct format and) should be accepted.
  5. Abnormal - 30/Dec/1960 ... Reason ... (the month is not written in the correct format and) should be rejected.
  6. [2] One mark per mark point, max two
  7. MP1 check that there are 10 characters in total
  8. MP2 if the date is too long/short it will be rejected

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
Algorithm design and problem-solving, O-Level Computer Science (syllabus 2210). Structured question, 7 marks.
Source
O-Level Computer Science, Oct/Nov 2023 Paper 2 Variant 2, question 2.

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