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 quickselect's own run on the numbers shown.
choose one
1question 1
Quickselect looks for place 6 in 71, 54, 27, 22, 35, 46. What is the row just after its first pivot is placed?
the answer, and why
the answer is D
The pivot is the last number, 46. Each smaller number joins the small side at the front, then the 46 swaps in just after them, to place 4: 27, 22, 35, 46, 71, 54.
if you chose another
AThat is the whole row in order. Quickselect never sorts it.