Cambridge A2 Level Computer Science 9618 · 20.1 Programming Paradigms

Q2 · 9618/31/O/N/21 Q2

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

Q29618/31/O/N/21original Q2Structured · 4 marks
Question 2 from 9618/31/O/N/21

Worked solution

Match each paradigm to the description that fits it best:

Programming paradigmDescription
DeclarativePrograms that specify the desired result rather than how to get to it
ImperativePrograms with an explicit sequence of commands that update the program state, with or without procedure calls
Low-levelPrograms using the instruction set of a processor
Object-orientedPrograms using the concepts of class, inheritance, encapsulation and polymorphism

Declarative → the desired result, not how to get to it [1]

Imperative → an explicit sequence of commands that update the program state [1]

Low-level → the instruction set of a processor [1]

Object-oriented → class, inheritance, encapsulation and polymorphism [1]

The description about events and user actions is not used.

KEY IDEAEach paradigm has one defining feature: declarative states the result, imperative gives commands, low-level uses processor instructions, OOP uses classes.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/31/O/N/21 question 2
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.