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

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

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

Official answer for Question 2

Part (b)

(ii)

✓
MP1
✓
Reference to month and day

Question 2

✓
MP2
✓
Clear description for a check that the day number matches with a
✓
relevant month
✓
(Either day matches with month // month matches with day)
✓
9618/23
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2023
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s23_ms_23.pdf →

Show text version of question

Question 2

Part (b)

(ii)

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.

(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]

Question 5

Question 6

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