Question 2(b)(i) 2023 · May-June · Paper 23 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
(i)
Question 2
Show text version of question
Question 2
Part (b)
(i)
Question 2
A program stores a date of birth for a student using a variable, MyDOB, of type DATE.
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.
(i)
Two of the parameter values can be checked without reference to the third parameter.
Describe these two checks.
Check 1 .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
Check 2 .............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
Why this question appears here
71% assigned-topic match · Programming › Structured programming
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9618_s23_qp_23.pdf
