Skip to main content
A-LevelComputer ScienceData types and structures9618/31 · May/June 2025 · Q47 Marks

A linked list of nodes is used to store an ordered list of integers. Each node consists of the data, a left pointer and a right pointer, for example: Left pointer Data Right pointer [Figure showing a node with '20' in the data box and empty pointer boxes] The linked list will be organised as a binary tree. -1 is used to represent a null pointer.

  1. (a)Complete the binary tree, including null pointers, to show how the data will be organised after the following integers have been added: 6, 15, 41, 66 [Figure showing a partial binary tree with Root pointer to 36, 12 as left child, 40 as right child][4]
  2. (b)Describe what is meant by recursion.[2]
  3. (c)A binary tree is a suitable Abstract Data Type (ADT) that a designer can implement using recursive algorithms. Identify one other ADT that a designer can implement using recursive algorithms.[1]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2025). The mark or mark type is shown in brackets.

  1. [1] Any two nodes added correctly with correct data (6, 15, 41, 66) and arrows
  2. [1] Remaining two nodes added with correct data (6, 15, 41, 66) and all nodes with connecting arrows starting from pointer boxes
  3. [1] Correct null pointers (-1) added throughout
  4. [1] All nodes correctly positioned and connected, with no entries in other pointer boxes
  5. [1] A technique used to solve problems using a function/procedure/subroutine that calls itself (general case)
  6. [1] ... until the terminating condition / base case is achieved, when no further recursive calls are made
  7. [1] Stack

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Data types and structures, A-Level Computer Science (syllabus 9618). Structured question, 7 marks.
Source
A-Level Computer Science, May/June 2025 Paper 3 Variant 1, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep