Cambridge A2 Level Computer Science 9618 · 20.1 Programming Paradigms

Q10 · 9618/32/M/J/23 Q4

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

Q109618/32/M/J/23original Q4Structured · 4 marks
Question 4 from 9618/32/M/J/23

Worked solution

Match each OOP term to its description:

OOP termDescription
Encapsulationthe process of putting data and methods together as a single unit
Gettersmethods used to return the value of a property
Polymorphismallows methods to be redefined for derived classes
Settersmethods used to update the value of a property

Encapsulation → putting data and methods together as a single unit [1]

Getters → methods used to return the value of a property [1]

Polymorphism → allows methods to be redefined for derived classes [1]

Setters → methods used to update the value of a property [1]

The description about a new class inheriting from a parent class is about inheritance, so it is not used.

KEY IDEAGetters read, setters write, encapsulation bundles data with methods, and polymorphism lets derived classes redefine methods.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/32/M/J/23 question 4
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.