ISRO Computer Science (CSE) 2015 - Question 29

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

Which statements is true?

  • A. LALR parser is more powerful and costly as compare to other parsers
  • B. All CFG's are LP and not all grammars are uniquely defined
  • C. Every SLR grammar is unambiguous but not every unambiguous grammar is SLR
  • D. LR(k) is the most general back tracking shift reduce parsing method

Answer: C. Every SLR grammar is unambiguous but not every unambiguous grammar is SLR

Explanation: SLR is a subset of unambiguous grammars. Not all unambiguous are SLR.

| | All questions of ISRO Computer Science (CSE) 2015