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 18, 2 and 31, takes 2 out, then puts in 10. What does the chain hold then, from the start?
the answer, and why
the answer is A
After 2 leaves, the chain holds 18, 31. 18 is bigger than 10, so the first look stops the walk and 10 goes in at the start.
if you chose another
BThat keeps 2, but the fourth operation takes 2 out.
CThat puts 10 at the end, but a put stops at the first bigger number, 18.
DThat loses 18. Taking 2 out links the start to 18, which stays.