Question 1

AQA Computer Science November 2021 Paper 1 (7517/1)A level3 marks

On the specification

4.3 Fundamentals of algorithms3.2 Fundamentals of data structures
Question text

1 The shaded row of Table 1 contains a list of numbers. A bubble sort algorithm could be used to sort the list of numbers into ascending order. Complete the unshaded cells of Table 1 to show the results of completing three passes through the list using a bubble sort algorithm. You should state the values at the end of each pass. Table 1 [0] [1] [2] [3] [4] [5] 35 8 1 6 4 First pass Second pass Third pass Copy the contents of the unshaded cells in Table 1 into the table in your Electronic Answer Document. [3 marks]