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

Consider the following statements:
Statement I: An LALR parser is more powerful than a canonical LR parser.
Statement II: An SLR parser is more powerful than LALR.
Which of the following is correct?

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

Show answer & explanation

Correct answer: C. Both Statement I and Statement II false

Explanation

Power order: SLR < LALR < CLR(1). Both statements reverse it.

More Theory of Computation and Compilers questions