What does a null next reference mark?
- A broken list
- The fastest node
- The end of the chain
What does one linked list node hold?
- Only a value with no links
- A value plus a next reference to the node after it
- The whole list copied inside
How do you reach the fifth node of a linked list?
- Jump straight there by index arithmetic
- Start at the first and follow next references one by one
- Ask the last node
How do you delete node 4 from the middle?
- Point node 3 straight at 5, skipping the removed node
- Delete every node after 4 as well
- Null out node 3
Which two pointer changes insert a node between 3 and 4?
- Node 3 points at 5 and node 5 points back
- The newcomer points at 4, then node 3 swings onto the newcomer
- Node 4 points at 3 and the newcomer points at null
Linked list access by position is as fast as array access.
Circle one: True False
A next reference is lost mid-chain before its replacement is set. What happens?
- Nothing, lists repair themselves
- Only the first node is lost
- Every node past the break is stranded and unreachable
Draw four nodes, insert a value after the second node. Which operation is cheap here and which is expensive?
- Access is cheap and insertion is expensive
- Insertion is cheap at two pointer changes while access by position is an expensive walk
- Both are free of cost