Past-paper question · 2025 May-June · Paper 33 · Q13

Question 13 2025 · May-June · Paper 33 · 100 marks

Original past-paper question for 13
Reveal official mark-scheme answer Official mark-scheme answer for 13

Official answer for Question 13

✓
One mark for each marking point

Question 4

✓
MP1
✓
Correct Index and Target columns
✓
MP2
✓
Correct Numbers[5] column
✓
MP3
✓
Correct Numbers[6] and Numbers[7] columns
✓
MP4
✓
Correct Numbers[8] column and no incorrect data added to any other of columns [1, 2, 3, 4, 9, 10]
✓
Numbers
✓
Index
✓
Target
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]

Question 1

Question 15

Question 2

Question 3

Question 7

Question 11

Question 15

Question 17

Question 19

Question 23

✓
0
✓
0

Question 2

Question 3

Question 4

Question 5

Question 17

Question 6

Question 19

Question 7

Question 23

Question 8

✓
0

Question 9

Mark scheme 9618_s25_ms_33.pdf →

Show text version of question

Question 13

The recursive procedure Delete() is defined as follows:

PROCEDURE Delete(Index, Target) IF Numbers[Index] > 0 THEN IF Numbers[Index] >= Target THEN Numbers[Index] Numbers[Index + 1] ← ENDIF Index Index + 1 ← CALL Delete(Index, Target) ENDIF ENDPROCEDURE

An array Numbers is used to store a sorted data set of non-zero positive integers. Unused cells contain zero.

The contents of the array at the start of the algorithm are:

Numbers

[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]

Complete the trace table for the algorithm for the procedure call:

CALL Delete(1, 15)

Numbers

Index Target

[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[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 Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.

Topic relevance

Why this question appears here

98% assigned-topic match · Computational thinking and problem-solving › Recursion

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_s25_qp_33.pdf

Keep practising this topic