Past-paper question · 2012 May-June · Paper 23 · Q5(a)
Question 5(a) 2012 · May-June · Paper 23 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (a)
Part (a)
✓
There are many different ways to represent the working
✓
Example:
- Something(4) becomes Something(5) + 4
- Something(5) becomes Something(6) + 5
- Something(6) becomes Something(7) + 6
- Ends at 7
- Diagram works back through functions
- Something(4) = 16
[6]
Show text version of question
Question 5
Part (a)
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 (a)
Calculate the value returned by the function call Something(4).
Show your working.
Something(4)=
[6]
Question 13
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
