Q.

Consider the following list.list = {24, 20, 10, 75, 70, 18, 60, 35} Suppose that list is sorted using the selection sort algorithm as discussed in the book. What is the resulting list after two passes of the sorting phase, that is, after two iteration of the outer for loop?

A. list = {10, 18, 24, 20, 75, 70, 60, 35}
B. list = {10, 18, 20, 24, 75, 70, 60, 35}
C. list = {10, 18, 24, 75, 70, 20, 60, 35}
D. None of these
Answer» C. list = {10, 18, 24, 75, 70, 20, 60, 35}
4.4k
0
Do you find this helpful?
24

View all MCQs in

Java Programming

Discussion

No comments yet