Which of the following statements is TRUE for the grammar given below? S ->…

PYQ Coal India Management Trainee CBT 2017

Which of the following statements is TRUE for the grammar given below?

S -> (L) | a
L -> L,S | S

  1. A.

    The grammar can be parsed by LR(0) parser only

  2. B.

    The grammar can be parsed by LR(0) and SLR(1) parsers

  3. C.

    The grammar can be parsed by LL(1) parser only

  4. D.

    The grammar can be parsed by LL(1) and LR(0) parsers

Attempted by 263 students.

Sign up free to check your answer

Sign up free

Explore the full course: Coal India Management Trainee

Loading lesson…