Past-paper question · 2012 May-June · Paper 23 · Q5(d)

Question 5(d) 2012 · May-June · Paper 23 · 2 marks

Original past-paper question for 5(D)
Original past-paper question for 5(D)
Original past-paper question for 5(D)
Original past-paper question for 5(D)
Original past-paper question for 5(D)
Original past-paper question for 5(D)
Reveal official mark-scheme answer Official mark-scheme answer for 5(D)

Official answer for Question 5

Part (d)

Part (d)

✓
e.g.
✓
Something 0
✓
FOR x 4 TO 6
✓
Something Something + x
✓
ENDFOR
✓
Something Something + 1
✓
Marking points:
  • Initialising Something
  • Correct FOR statement
  • Adding 1 at the end
[2]
✓
© University of Cambridge International Examinations 2012

Mark scheme 9691_s12_ms_23.pdf →

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.

[2]

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.

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 9691_s12_qp_23.pdf

Keep practising this topic