When you are sorting in descending order, use the greater than operator (>) in the comparison to swap adjacent elements if the first element is greater than the second.
Correct Answer:
Verified
Q4: When you swap the values of two
Q5: Sorting an array of data elements involves
Q6: On the first pass of a bubbles
Q7: You can make an ascending bubble sort
Q8: The programming logic for a bubble sort
Q10: To sort in ascending order, use the
Q11: A bubble sort requires passes through an
Q12: When sorting a selection sort in ascending
Q13: The insertion sort algorithm builds a sorted
Q14: All sorting algorithms use an outer For
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents