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

Question 5(b) 2012 · May-June · Paper 23 · 1 mark

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

Official answer for Question 5

Part (b)

Part (b)

–

✓
infinite loop//runs out of stack space
[1]

Mark scheme 9691_s12_ms_23.pdf →

Show text version of question

Question 5

Part (b)

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 (b)

State what will happen if the function is called with Something(8). For

Examiner's Use

[1]
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