The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from insertion sort's own run on the numbers shown.
choose one
1question 1
Insertion sort works on 6, 9, 8, 1, 4. Its first slide places the 9. What is the row after its third slide?
the answer, and why
the answer is D
After slides 1 and 2 the row is 6, 8, 9, 1, 4. Slide 3 takes the 1 left past every bigger number before it: 1, 6, 8, 9, 4.
if you chose another
AThat is the row after slide 2.
BThat is the row sorted, after slide 4.
CThat stops the 1 at the 6, but the 6 is bigger too.