Past-paper question · 2025 May-June · Paper 32 · Q12(a)

Question 12(a) 2025 · May-June · Paper 32 · 5 marks

Original past-paper question for 12(A)
Reveal official mark-scheme answer Official mark-scheme answer for 12(A)

Official answer for Question 12

Part (a)

✓
One mark per mark point

Question 5

✓
MP1
✓
Two correct attributes (DateOfBirth : Date) and priority with a
✓
sensible name and integer data type
✓
MP2
✓
SetPatientID(…) and SetDoctorID(…) seen
✓
MP3
✓
… and appropriate parameters, with string data types
✓
MP4
✓
GetPatientID() and GetDateOfBirth() seen
✓
MP5
✓
Priority setter and getter fully correct with name matching Priority
✓
attribute, with appropriate parameter and correct data type.
✓
Patient
✓
PatientID
✓
:
✓
STRING
✓
Name
✓
:
✓
STRING
✓
DateOfBirth
✓
:
✓
DATE
✓
Priority
✓
:
✓
INTEGER
✓
DoctorID
✓
:
✓
STRING
✓
SetPatientID(PatientNumber : STRING)
✓
SetName(FullName : STRING)
✓
SetDateOfBirth(DOB : DATE)
✓
SetPriority(Urgency : INTEGER)
✓
SetDoctorID(DocID : STRING)
✓
GetPatientID()
✓
GetName()
✓
GetDateOfBirth()
✓
GetPriority()
✓
GetDoctorID()

Mark scheme 9618_s25_ms_32.pdf →

Show text version of question

Question 12

Part (a)

A
medical clinic uses objects of the class Patient to assign a priority and a doctor to a

patient. Some of the attributes required in the class are listed in the table.

Attribute Data type Description

PatientID STRING Unique identifier of the patient

Name STRING Patient’s full name, surname first

DoctorID STRING ID of doctor administering treatment

Treatment is prioritised with a numeric scale of 1 to 5.

Complete the class diagram for Patient, to include:

  • attribute and data type for the date of birth
  • attribute and data type for the priority
  • methods to assign the patient ID, priority and doctor ID
  • methods to return the patient ID, patient date of birth and the priority.

Patient PatientID : STRING

Name : STRING

....................................................... : ....................................................................

....................................................... : ....................................................................

DoctorID : STRING

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

SetName(FullName : STRING)

SetDateOfBirth(DOB : DATE)

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

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

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

GetName()

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

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

GetDoctorID()

[5]

Question 13

, ,

Topic relevance

Why this question appears here

49% assigned-topic match · Data types and structures › Data types and records

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_s25_qp_32.pdf

Keep practising this topic