Loading
notes intro/old submit AP Problems the dump links
 

Quiz 16c - Sorting Arrays

 

id:

 

1. True or false: Selection sort is the fastest sort. true false

2. True or false: Selection sort finds the lowest value from the non sorted array each time true false

 

in the array:

int[] grades = {95,87,70,94,56,88,55};

3. If we use selection sort after the first swap, it will look like

 

{55,87,70,94,56,88,55}; {55,87,70,94,56,88,95}; {87,95,70,94,56,88,55}; {95,87,70,94,56,55,88}; none of the above

 

4. If we use insertion sort after the first swap, it will look like

 

{55,87,70,94,56,88,55}; {55,87,70,94,56,88,95}; {87,95,70,94,56,88,55}; {95,87,70,94,56,55,88}; none of the above