Question 127Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

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

Which of the following statements is TRUE for the grammar given below? S -> (L) / a L -> L,S / S
  1. AThe grammar can be parsed by LR(0) parser only
  2. BThe grammar can be parsed by LR(0) and SLR(1) parsers
  3. CThe grammar can be parsed by LL(1) parser only
  4. DThe grammar can be parsed by LL(1) and LR(0) parsers
Show answerHide answer

Correct answer: (B) The grammar can be parsed by LR(0) and SLR(1) parsers

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 127 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.