Answer:
C. all elements in the array are already in the correct order
Explanation:
A. you must make one more pass through the array
B. the elements in the array were badly out of order
C. all elements in the array are already in the correct order
D. you must make a total of 10 passes through the array
Bubble Sort is one of the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
In a list of 10 items, the implementation of bubble sort is such that:
the first pass will compare element of index 0 and index 1
The second pass will compare element of index 1 and index 2
The third pass will compare element of index 2 and index 3
The fourth pass will compare element of index 3 and index 4.
The fifth pass will compare element of index 4 and index 5. etc
From the above, the correct answer is;
C. all elements in the array are already in the correct order