Question 4(b) 2015 · October-November · Paper 32 · 0 marks
Reveal official mark-scheme answer

Official answer for Question 4
Part (b)
Part (b)
Question 1
Question 2
Question 1
Question 3
Question 2
Question 4
Question 3
Question 4
Question 5
Question 5
Question 6
Question 6
Question 1
Question 1
Question 1
Question 1
Question 32
Show text version of question
Question 4
Part (b)
Part (b)
The binary tree is implemented in a high-level language using a number of data structures
and one variable:
Variable Data type Description RootPtr INTEGER The array subscript of the root of the tree FoodName ARRAY[0 : 2000] OF STRING Array of food names RightPtr ARRAY[0 : 2000] OF INTEGER Array of right pointer values LeftPtr ARRAY[0 : 2000] OF INTEGER Array of left pointer values
MELON, BEETROOT, TURNIP, APPLE, PARSNIP, SWEDE, QUINCE
Complete the diagram below showing the contents of the arrays and the root pointer variable.
RootPtr
LeftPtr FoodName RightPtr
0 MELON
Question 1
Question 2
Question 3
Question 4
Why this question appears here
76% assigned-topic match · Data types and structures › Arrays
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_w15_qp_32.pdf
