The following algorithm represents the logic of a(n) ____.For maxElement = ARRAYSIZE - 1 To 1 Step - 1 For index = 0 To maxElement - 1 If someNums[index] > someNums[index + 1] Then temp = someNums[index] someNums[index] = someNums[index + 1] someNums[index + 1] = temp End If End ForEnd For
A. selection sort
B. insertion sort
C. bubble sort
D. merge sort
Answer: C
You might also like to view...
Which of the following can be used to limit the chance of employees conducting computer-based espionage?
a. Limit the use of storage devices, such as CDs and USBs, and control access to these devices. b. Encrypt hard drives. c. Give employees only the minimum amount of access they need to perform their job. d. All the above.
Write a statement that rounds a float variable called size to three decimal places:
What will be an ideal response?
Building blocks that you save in a gallery are stored in the ________ application on the computer you are working on
Fill in the blank(s) with correct word
A(n) ________ loop repeats a group of statements as long as a condition remains true
Fill in the blank(s) with correct word