Multiple Choice
To design a general-purpose sort method, sortList, to sort a list, which of the following must be parameters of the method sortList.
(i) The array containing the list
(ii) The length of the list
(iii) A boolean variable indicating whether the sort was successful
A) (i)
B) (ii)
C) (i) and (ii)
D) (i) , (ii) , and (iii)
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Suppose that you have the following list.
Q27: Selection sort uses nested for loops.
Q40: What is the maximum number of key
Q43: Consider the following list.list = {20, 10,
Q44: Based on the accompanying figure, in a
Q45: If the list in the accompanying figure
Q46: Consider the following list.list = {5, 11,
Q48: What is the minimum number of comparisons
Q49: If the list in the accompanying figure
Q49: To sort a list of 1000, selection