Past-paper question · 2013 May-June · Paper 33 · Q4(d)(iii)

Question 4(d)(iii) 2013 · May-June · Paper 33 · 1 mark

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

Official answer for Question 4

Part (d)

(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]
✓
[Total: 15]

Mark scheme 9691_s13_ms_33.pdf →

Show text version of question

Question 4

Part (d)

(iii)

Question 4

A linked list is implemented with an array of records of data type Node. For

Examiner's Use The Node record has two fields as defined below:

RECORD Node Data : STRING Pointer : INTEGER ENDRECORD

A
program is to create a linked list using the array and variable shown below.

Identifier Data Type Description

MyList ARRAY[100] OF Node An array to store the data and pointer values

HeadPointer INTEGER Stores the index position of the node at the head of the linked list The following algorithm traverses the linked list and outputs the data values. For Examiner's Use PROCEDURE ListTraversal(Index) IF MyList[Index].Pointer <> 0 THEN // follow the pointer to the next node ListTraversal(MyList[Index].Pointer) ENDIF OUTPUT MyList[Index].Data ENDPROCEDURE

(iii)

What do the arrows in the diagram represent?

[1]

Question 14

Topic relevance

Why this question appears here

82% 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_s13_qp_33.pdf

Keep practising this topic