Past-paper question · 2023 May-June · Paper 23 · Q2(b)(i)

Question 2(b)(i) 2023 · May-June · Paper 23 · 2 marks

Original past-paper question for 2(B)(I)
Original past-paper question for 2(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 2(B)(I)

Official answer for Question 2

Part (b)

(i)

✓
MP1
✓
Value for month is between 1 and 12 (inclusive)

Question 2

✓
MP2
✓
Value of year is <= 2002

Mark scheme 9618_s23_ms_23.pdf →

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.

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.

(i)

Two of the parameter values can be checked without reference to the third parameter.

Describe these two checks.

Check 1 .............................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

Check 2 .............................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

[2]
Topic relevance

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

Keep practising this topic