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 linked list's own run on the numbers shown.
choose one
1question 1
An empty chain kept in order puts in 97, 3 and 99, takes 3 out, then puts in 50. What does the chain hold then, from the start?
the answer, and why
the answer is D
After 3 leaves, the chain holds 97, 99. 97 is bigger than 50, so the first look stops the walk and 50 goes in at the start.
if you chose another
AThat keeps 3, but the fourth operation takes 3 out.
BThat puts 50 at the end, but a put stops at the first bigger number, 97.
CThat loses 97. Taking 3 out links the start to 97, which stays.