CAPE Computer Science Unit 2 · 2013 · Paper 2 · Question 2(a)(i)
Given a C function `bubbleSort(int a[], int numItems)` implementing bubble sort on an array of integers.
Explain the purpose of the outer 'for' loop.
The mark scheme is shown once you've answered.
Practise this question