Past-paper question · 2012 May-June · Paper 23 · Q5(c)
Question 5(c) 2012 · May-June · Paper 23 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (c)
Part (c)
–
✓
it would never end, whatever the input value
✓
–
✓
… as no stopping condition
[2]
Show text version of question
Question 5
Part (c)
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 (c)
State what would happen if the fourth line, 'Something ← 1', was not present.
[2]
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
