viewing paste Unknown #27603 | Text

Posted on the
1 2 3 4 5 6 7 8 9
An array of 100 elements is to be sorted using the bubble sort in the modules (the one that tests the return value of floatLargestToTop() to see if it can return "early".)  Check all the true statements about the sort algorithm, i.e., the sort method and its support methods. (Check all that apply.)
 
 
 
        A.      It will always require at least one swap.
        B.      It will always return (completely sorted) after 99 data comparisons.
        C.      It will sometimes return (completely sorted) after only 99 data comparisons.
        D.      It will always require at least 99 comparisons
 
Viewed 515 times, submitted by unknown.