Multiple Choice
When sorting an array of objects, if the values in the data member being sorted on are out of order for two objects, it is necessary to
A) examine a different data member.
B) swap these two data values.
C) swap the entire two objects.
D) swap one-by-one all data members in the two objects.
E) stop the sort.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: When an array is sorted from highest
Q11: The _ sort usually performs fewer exchanges
Q12: When sorting an array of objects, if
Q13: When searching for an item in an
Q14: Bubble sort and selection sort can also
Q16: A sorting algorithm can be used to
Q17: We can estimate the _ of an
Q18: The linear search is adequate for searching
Q19: We can measure the complexity of an
Q20: A(n) _ algorithm arranges data into some