Parsing & Syntax Analysis

Your answer
Answer & solution
Answer: D (no official key was published)
1. Bottom-up LR parsing reverses a rightmost derivation: it replaces a production’s right-hand side by its left-hand-side nonterminal.
2. A handle must specify both which production to reduce and which occurrence of its right-hand side is the correct next one. Merely naming a position or a nonterminal is insufficient.
3. D gives exactly this production-and-position pair. A possible future reduction, as in C, is not necessarily the next handle.