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
You might also like to view...
The if/elif/else structure is a ________ structure.
Fill in the blank(s) with the appropriate word(s).
Subscripts are always a sequence of ____________________.
Fill in the blank(s) with the appropriate word(s).
A list is not the preferred list type when many object insertions and deletions need to be made and object access tends to be sequential.
Answer the following statement true (T) or false (F)
All of the following statements are TRUE regarding Visual Basic for Applications EXCEPT:
A) VBA is considered a very basic form of C++ programming. B) VBA allows a user to implement a wide variety of enhancements to many Microsoft Office applications. C) Provides additional tools that can enhance functionality and usability of an Excel application. D) VBA manipulates objects by using the methods and properties associated with them.