πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) list = {10, 18, 24, 75, 70, 20, 60, 35}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
158
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate