Skip to main content
A-LevelComputer ScienceProgramming9618/23 · May/June 2023 · Q26 Marks

A program stores a date of birth for a student using a variable, MyDOB, of type DATE.

  1. (a)MyDOB has been assigned a valid value corresponding to Kevin's date of birth. Complete the pseudocode statement to test whether Kevin was born on a Thursday. IF THEN[2]
  2. (b)(i)A function CheckDate() will take three integer parameters representing a day, month and year of a given date. The function will validate the date of birth for a student that the parameters passed to it represent. For a date to be valid, a student must be at least 18 in year 2020. Two of the parameter values can be checked without reference to the third parameter. Describe these two checks. Check 1 Check 2[2]
  3. (b)(ii)Several values of the parameter representing the day can only be checked completely by referring to the value of one other parameter. Describe this check.[2]

Mark scheme

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

  1. [2] One mark for each underlined part
  2. [2] IF DAYINDEX(MYDOB) = 5 THEN
  3. [2] MP1 Value for month is between 1 and 12 (inclusive)
  4. [2] MP2 Value of year is <= 2002
  5. [2] MP1 Reference to month and day
  6. [2] MP2 Clear description for a check that the day number matches with a relevant month
  7. [2] (Either day matches with month // month matches with day)

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, A-Level Computer Science (syllabus 9618). Structured question, 6 marks.
Source
A-Level Computer Science, May/June 2023 Paper 2 Variant 3, 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