Past-paper question · 2024 May-June · Paper 43 · Q2(d)(i)

Question 2(d)(i) 2024 · May-June · Paper 43 · 6 marks

Original past-paper question for 2(D)(I)
Original past-paper question for 2(D)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 2(D)(I)

Official answer for Question 2

Part (d)

(i)

Question 1

mark each

Question 2

✓
Calling ReadData() and storing/using return value (as array of type Tree)…
✓
…calling PrintTrees() with first object in returned array as parameter
✓
e.g.
✓
Java
✓
Tree[] TreeData = new Tree[20];
✓
TreeData = ReadData();
✓
PrintTrees(TreeData[0]);
✓
VB.NET
✓
Sub Main(args As String())
✓
Dim TreeObjects(10) As Tree
✓
TreeObjects = ReadData()
✓
PrintTrees(Treeobjects(0))
✓
End Sub
✓
Python
✓
TreeObjects = ReadData()
✓
PrintTrees(TreeObjects[0])

Mark scheme 9618_s24_ms_43.pdf →

Show text version of question

Question 2

Part (d)

(i)

Question 2

Take a screenshot of the output(s). Save your program. Copy and paste the screenshot into part 1(c)(ii) in the evidence document.

[2]

Part (d)

The procedure BubbleSort() uses a bubble sort to sort the data in DataStored into

ascending numerical order.

(i)

Write program code for BubbleSort(). Save your program. Copy and paste the program code into part 1(d)(i) in the evidence document.

[4]
Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Structured programming

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 9618_s24_qp_43.pdf

Keep practising this topic