Past-paper question · 2024 May-June · Paper 43 · Q2(d)(i)
Question 2(d)(i) 2024 · May-June · Paper 43 · 6 marks
Reveal official mark-scheme answer
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])
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
Related searches for this question
Computer Science For First Examination In 2021 9618 topical past papers
Computer Science For First Examination In 2021 9618 topical questions with answers
AS & A Level Computer Science For First Examination In 2021 topical past papers
Computer Science For First Examination In 2021 9618 Programming topical questions
Structured programming past paper questions
Computer Science For First Examination In 2021 9618 2024 May-June question
