Arrays & Linked Lists

Answer & solution
Answer: D (no official key was published)
Step 1: Identify a worst-case input.
Step 2: Put the target in the final node. Before examining that node, none of the earlier comparisons succeeds, so there are n−1 failed comparisons and one successful comparison. If the target is absent there are n failed comparisons instead. Binary-search logarithmic bounds require positional access and ordering not supplied here; n/2 is not a worst-case bound.
Conclusion: An absent key or a key only at the final node requires examining all n nodes. Each node entails one comparison with the search key, so the worst case is n, D.