Question 13 2025 · May-June · Paper 33 · 100 marks
Reveal official mark-scheme answer
Official answer for Question 13
Question 4
Question 1
Question 15
Question 2
Question 3
Question 7
Question 11
Question 15
Question 17
Question 19
Question 23
Question 2
Question 3
Question 4
Question 5
Question 17
Question 6
Question 19
Question 7
Question 23
Question 8
Question 9
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
Complete the trace table for the algorithm for the procedure call:
CALL Delete(1, 15)
Numbers
Index Target
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.
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
