Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

All the question below refer to the same array. You have to type your answer on

ID: 3918964 • Letter: A

Question

All the question below refer to the same array. You have to type your answer on a single line with one space between each number to get it correct.

The initial array is 2 3 4 5 6 7 8 1

So if the question was to type in the initial array, you would enter

2 3 4 5 6 7 8 1

Question 1 (1 point)

What is the contents of the array after 1 pass of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 1 options:

Save

Question 2 (1 point)

What is the contents of the array after 2 passes of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 2 options:

Save

Question 3 (1 point)

What is the contents of the array after 3 passes of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 3 options:

Save

Question 4 (1 point)

What is the contents of the array after 4 passes of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 4 options:

Save

Question 5 (1 point)

What is the contents of the array after 5 passes of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 5 options:

Save

Question 6 (1 point)

What is the contents of the array after 6 passes of selection sort (into ascending order?) A single pass includes both a search and a swap.

Question 6 options:

Save

Explanation / Answer

1) 1 3 4 5 6 7 8 2 2) 1 2 4 5 6 7 8 3 3) 1 2 3 5 6 7 8 4 4) 1 2 3 4 6 7 8 5 5) 1 2 3 4 5 7 8 6 6) 1 2 3 4 5 6 8 7