The following algorithm represents the logic of a(n) ____.// Outer loop designates a position// from first to last elementFor 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 IfEnd For

A. selection sort
B. insertion sort
C. bubble sort
D. merge sort


Answer: A

Computer Science & Information Technology

You might also like to view...

All of the following are major categories of a Web Part that you can modify EXCEPT:

A) Theme. B) Appearance. C) Layout. D) Advanced.

Computer Science & Information Technology

A(n) _______ object is used to represent a color in Ogre.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________ button is also called the power button

A) Turn off B) Stop C) Close D) Shut down

Computer Science & Information Technology

?Thebreakstatement runs a command or a command block only if the conditional expression returns the valuetrue; it does nothing if the condition is false. ?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology