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 iterations 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. list = {10, 20, 24, 75, 70, 20, 60, 35}

Answer: C

Computer Science & Information Technology

You might also like to view...

A ________ query is a select query that calculates a sum, average, or similar statistic and then groups the results by two sets of values

A) crosstab B) summary statistic C) logical D) comparison

Computer Science & Information Technology

________ is the difference in colors in a graphic

Fill in the blank(s) with correct word

Computer Science & Information Technology