Using a bubble sort, sort the array 5, 7, 4, 9, 8, 6, 3 intoascending order. What is the array after the first swap occurs?
A. 3, 7, 4, 9, 8, 6, 5
B. 5, 4, 7, 9, 8, 6, 3
C. 5, 7, 4, 9, 8, 3, 6
D. 4, 7, 4, 3, 8, 6, 9
Expert Answer
Answer to Using a bubble sort, sort the array 5, 7, 4, 9, 8, 6, 3 into ascending order. What is the array after the first swap occ…