Question 5(b)(ii) 2015 · October-November · Paper 33 · 0 marks
Reveal official mark-scheme answer

Official answer for Question 5
Part (b)
(ii)
(ii)
Question 1
Question 1
Question 3
Question 2
Question 2
Question 4
Question 5
Question 3
Question 6
Question 4
Question 5
Question 6
Question 7
Question 7
Question 33
Show text version of question
Question 5
Part (b)
(ii)
The binary tree is implemented in a high-level language using a number of data structures and one variable:
Variable Data type Description
RootPtr .................................................................... The array subscript of the root of the tree
City .................................................................... Array of city names
RightPtr ARRAY[1 : 2000] OF INTEGER Array of right pointer values LeftPtr ARRAY[1 : 2000] OF INTEGER Array of left pointer values
(ii)
Complete the diagram below showing the contents of the arrays and the root pointer
variable.
RootPtr
LeftPtr City RightPtr
1 LIMA
Question 2
Question 3
Question 4
Question 5
Why this question appears here
86% 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_33.pdf
