Multiple Choice
A(n) ____ involves comparing adjacent elements and swapping them, if needed, until all elements are in their correct positions.
A) selection sort
B) bubble sort
C) insertion sort
D) merge sort
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: A(n) _ builds a sorted array by
Q12: All sorting algorithms use an outer For
Q13: To reverse the order of array elements,
Q14: A(n) _ is the most straightforward sorting
Q15: The sort() method arranges array elements in
Q17: Sorting is often done on arrays because
Q18: Putting data items in order is called
Q19: Which of the following swaps the values
Q20: Data in data structures, such as linked
Q21: In JavaScript, lexigraphical sorting treats numbers as