Past-paper question · 2014 May-June · Paper 33 · Q4(a)

Question 4(a) 2014 · May-June · Paper 33 · 2 marks

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

Official answer for Question 4

Part (a)

Part (a)

INTEGER

✓
ARRAY[1 : 2000] OF (datatype>
✓
OF STRING
✓
[MAX 2]

Mark scheme 9691_s14_ms_33.pdf →

Show text version of question

Question 4

Part (a)

Question 4

A binary tree is used to store a list of sports.

The tree currently has seven sports as shown below:

JUDO

ATHLETICS SOCCER

HOCKEY SAILING SWIMMING

WRESTLING

The binary tree is implemented in a high-level language with the following data structures:

Variable Data type Description

RootPtr Array subscript for the root of the tree

Data Array of sport names

RightPtr ARRAY[1 : 2000] OF INTEGER Array of right pointer values

LeftPtr ARRAY[1 : 2000] OF INTEGER Array of left pointer values

Part (a)

Complete the two table entries above.

[2]
Topic relevance

Why this question appears here

71% assigned-topic match · Data types and structures › Data types and records

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_s14_qp_33.pdf

Keep practising this topic