Cambridge A2 Level Computer Science 9618 · 20.1 Programming Paradigms

Q20 · 9618/33/M/J/25 Q5

Worked solution from the Further Programming Paper 3 Advanced Theory booklet, Part 1 of 2.

Q209618/33/M/J/25original Q5Structured · 4 marks
Question 5 from 9618/33/M/J/25

Worked solution

Fill in each gap with the matching term or description:

OOP termDescription
GetterA method that accesses the value of a property
SetterA method that changes the value of a property
ObjectAn instance of a class
MethodA subroutine (procedure or function) defined as part of a class

First term: Getter [1]

Second term: Setter [1]

Object: an instance (instantiation) of a class [1]

Method: a programmed procedure or function defined inside a class [1]

KEY IDEAGetters read a property, setters change it, an object is an instance of a class, and a method is a subroutine inside a class.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/33/M/J/25 question 5
VIDEO
▶ Topic lesson

A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.