Skip to main content
A-LevelComputer ScienceFurther programming9618/32 · Oct/Nov 2022 · Q106 Marks

Define Encapsulation:

  1. (a)(i)Define Encapsulation:[1]
  2. (a)(ii)Define Getter:[1]
  3. (a)(iii)Define Setter:[1]
  4. (b)A school has a program written using OOP to maintain its staff and student records. The object SubstituteTeacher allows the details of the school's substitute teachers to be stored. This includes their full name, telephone number and whether or not they are in school today. For example: SubName Sarah Jones Telephone 01223658721 InSchool TRUE Complete the diagram for the object SubstituteTeacher, including appropriate properties and their getters and setters. [Figure X.X][3]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.

  1. [1] (a) One mark for each correct OOP term definition • Encapsulation – putting properties and methods inside a class // ensures sensitive data is hidden from users by hiding values of a structured data object inside a class.
  2. [1] (a) • Getter - method that is used to return the value of a property.
  3. [1] (a) • Setter - method that is used to update the value of a property.
  4. [1] (b) One mark for each point • properties correct
  5. [1] (b) • setters correct
  6. [1] (b) • getters correct SubstituteTeacher SubName : STRING Telephone : STRING InSchool : BOOLEAN SetSubName (StaffName : STRING) SetTelephone (Tel : STRING) SetInSchool (Present : BOOLEAN) GetSubName() GetTelephone() GetInSchool()

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, 6 marks.
Source
A-Level Computer Science, Oct/Nov 2022 Paper 3 Variant 2, question 10.

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