All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2022 Shift 1

Match List I with List II (stack and input configurations)
List IList II
A. Initial configuration of stack and input in LL parsingI. $ | w$
B. Final configuration of stack and input in LL parsingII. $ | $
C. Initial configuration of stack and input in LR parsingIII. $S | w$
D. Final configuration of stack and input in LR parsingIV. $S | $

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. A-III, B-II, C-I, D-IV

Explanation

An LL parse starts with $S on the stack and w$ as input (III) and ends with $ and $ (II). An LR parse starts with an empty stack $ and input w$ (I) and ends with $S on the stack and $ as input (IV). (List I item D refers to the final LR configuration.)

More Theory of Computation and Compilers questions