Past-paper question · 2015 October-November · Paper 41 · Q4(c)(ii)

Question 4(c)(ii) 2015 · October-November · Paper 41 · 2 marks

Original past-paper question for 4(C)(II)
Original past-paper question for 4(C)(II)
Original past-paper question for 4(C)(II)
Original past-paper question for 4(C)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 4(C)(II)

Official answer for Question 4

Part (c)

(ii)

(ii)

A procedure that calls itself // is defined in terms of itself

✓
Line number: 04/09
[2]

Mark scheme 9608_w15_ms_41.pdf →

Show text version of question

Question 4

Part (c)

(ii)

Question 4

A binary tree Abstract Data Type (ADT) has these associated operations:

  • create the tree (CreateTree)
  • add an item to tree (Add)
  • output items in ascending order (TraverseTree)
A
programmer needs an algorithm for outputting items in ascending order. To design this, the

programmer writes a recursive procedure in pseudocode.

(ii)

Explain what is meant by a recursive procedure. Give a line number from the code above

that shows procedure TraverseTree is recursive.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

Line number ..................................................................................................................[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 9608_w15_qp_41.pdf

Keep practising this topic