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 quick sort's own run on the numbers shown.
choose one
1question 1
Quick sort starts on 30, 34, 15, 8, 36, 14. What is the row just after its first pivot is placed?
the answer, and why
the answer is B
The pivot is the last number, 14. Each smaller number joins the small side at the front, then the 14 swaps in just after them: 8, 14, 15, 30, 36, 34.
if you chose another
AThat sorts the right part too, which waits for later splits.