Past-paper question · 2013 May-June · Paper 31 · Q4(c)(iii)

Question 4(c)(iii) 2013 · May-June · Paper 31 · 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)
Original past-paper question for 4(C)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 4(C)(III)Official mark-scheme answer for 4(C)(III)

Official answer for Question 4

Part (c)

(iii)

(iii)

The procedure has to backtrack/unwind from the current call

[1]
✓
To return to the calling procedure // return to the addresses from which called
[1]
✓
[MAX 1]
✓
[Total: 12]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE A LEVEL – May/June 2013
✓
9691

Question 31

Mark scheme 9691_s13_ms_31.pdf →

Show text version of question

Question 4

Part (c)

(iii)

Question 4

A binary tree is implemented with three 1-dimensional arrays. For

Examiner's Use Identifier Data Type Description Data ARRAY[100] OF STRING Stores the data values LeftP ARRAY[100] OF INTEGER Stores the left index pointer RightP ARRAY[100] OF INTEGER Stores the right index pointer Root INTEGER Stores the index position of the root value The following algorithm traverses the tree shown and outputs the nodes in order i.e. an For ‘in-order traversal’. Examiner's Use

PROCEDURE InOrder(Root) Root IF LeftP[Root] <> 0 THEN // move left PEPPER InOrder(LeftP[Root]) ENDIF

OUTPUT Data[Root] BEAN PUMPKIN IF RightP[Root] <> 0 THEN // move right InOrder(RightP[Root]) PEA ENDIF ENDPROCEDURE

(iii)

What do the arrows in the diagram represent?

[1]

Question 14

Topic relevance

Why this question appears here

98% 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_s13_qp_31.pdf

Keep practising this topic