Question 5(d) 2012 · May-June · Paper 23 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (d)
Part (d)
- Initialising Something
- Correct FOR statement
- Adding 1 at the end
Show text version of question
Question 5
Part (d)
Question 5
Ramon is learning about recursion. He has designed a recursive function. For
Examiner's FUNCTION Something(Number) Use IF Number = 7 THEN Something ← 1 ELSE Something ← Something(Number + 1) + Number ENDIF ENDFUNCTION
Part (d)
The same process could have been designed using a FOR loop.
Write the pseudocode to do this.
Question 14
Question 15
Question 16
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.
University of Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself 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 9691_s12_qp_23.pdf
