Past-paper question · 2021 May-June · Paper 32 · Q9(c)

Question 9(c) 2021 · May-June · Paper 32 · 4 marks

Original past-paper question for 9(C)
Original past-paper question for 9(C)
Reveal official mark-scheme answer Official mark-scheme answer for 9(C)

Official answer for Question 9

Part (c)

✓
One mark for each correct programming paradigm (Max 4)

Question 4

✓
Program code example
✓
Programming paradigm
✓
male(john).
✓
Declarative
✓
female(ethel).
✓
parent(john, ethel).
✓
FOR Counter = 1 TO 20
✓
Procedural / imperative
✓
X = X * Counter
✓
NEXT Counter
✓
Start: LDD Counter
✓
Low-level / assembly
✓
INC ACC
✓
STO Counter
✓
public class Vehicle
✓
{
✓
private speed;
✓
public Vehicle()
✓
Object oriented / (OOP)
✓
{
✓
speed = 0;
✓
}
✓
}

Mark scheme 9618_s21_ms_32.pdf →

Show text version of question

Question 9

Part (c)

Part (c)

Identify the programming paradigm for each of these program code examples.

Program code example Programming paradigm male(john). female(ethel). parent(john, ethel). FOR Counter = 1 TO 20 X = X * Counter NEXT Counter Start: LDD Counter INC ACC STO Counter public class Vehicle { private speed; public Vehicle() { speed = 0; } }

[4]

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.

Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which itself is a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9618_s21_qp_32.pdf

Keep practising this topic