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

Question 4(c)(iii) 2015 · October-November · Paper 41 · 1 mark

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

Official answer for Question 4

Part (c)

(iii)

(iii)

TraverseTree(RootPointer)

[1]

Mark scheme 9608_w15_ms_41.pdf →

Show text version of question

Question 4

Part (c)

(iii)

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.

(iii)

Write the pseudocode call required to output all names stored in Tree.

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

.......................................................................................................................................[1]

Question 13

Question 5 begins on page 14.

Question 14

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