Skip to main content
A-LevelComputer ScienceFurther programming9618/32 · May/June 2025 · Q128 Marks

(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. [Incomplete Class Diagram for Patient]

  1. (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. [Incomplete Class Diagram for Patient][5]
  2. (b)(i)Identify the object-oriented programming (OOP) term described as 'an occurrence of an object'.[1]
  3. (b)(ii)Describe what is meant by the OOP term polymorphism.[2]

Mark scheme

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

  1. MP1 Two correct attributes (DateOfBirth : Date) and priority with a sensible name and integer data type
  2. MP2 SetPatientID (...) and SetDoctorID (...) seen
  3. MP3 and appropriate parameters, with string data types
  4. MP4 GetPatientID() and GetDateOfBirth() seen
  5. MP5 Priority setter and getter fully correct with name matching Priority attribute, with appropriate parameter and correct data type.
  6. PatientID : STRING
  7. Name : STRING
  8. DateOfBirth : DATE
  9. Priority : INTEGER
  10. DoctorID : STRING
  11. SetPatientID (PatientNumber : STRING)
  12. SetName(FullName : STRING)
  13. SetDateOfBirth(DOB : DATE)
  14. SetPriority(Urgency : INTEGER)
  15. SetDoctorID (DocID : STRING)
  16. GetPatientID()
  17. GetName()
  18. GetDateOfBirth()
  19. GetPriority()
  20. GetDoctorID()
  21. Instance // instantiation
  22. MP1 Polymorphism is when methods with the same name are redefined / behave differently
  23. MP2 in derived / inherited classes / subclasses

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

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