Multiple Choice
The following algorithm represents the logic of a(n) ____.
// Outer loop designates a position
// from first to last element
For currEl = 0 To ARRAYSIZE - 1
MinValue = someNums[currEl]
MinPosition = currEl
// Inner loop steps through array,
// finding smallest value
For index = currEl + 1 To ARRAYSIZE - 1
If someNums[index] < minValue Then
MinValue = someNums[index]
MinPosition = index
End If
End For
// Swap minimum value with element at
// designated position if different
If minPosition != currEl Then
Temp = someNums[currEl]
SomeNums[currEl] = someNums[minPosition]
SomeNums[minPosition] = temp
End If
End For
A) selection sort
B) insertion sort
C) bubble sort
D) merge sort
Correct Answer:

Verified
Correct Answer:
Verified
Q20: Data in data structures, such as linked
Q21: In JavaScript, lexigraphical sorting treats numbers as
Q22: On the first pass of a bubbles
Q23: When you swap the values of two
Q24: A bubble sort requires passes through an
Q25: To sort in ascending order, use the
Q27: An optional argument called a function reference
Q28: When you are sorting in descending order,
Q29: A sorting algorithm can involve switching the
Q30: The following algorithm represents the logic of