Number-Systems
October 3, 2023NIC-NIELIT Scientist-B 2020
October 3, 2023Compiler-Design
| Question 209 |
Which of the following statements is/ are false?
S1: LR(0) grammar and SLR(1) grammar are equivalent
S2: LR(1) grammar are subset of LALR(1) grammars
S1: LR(0) grammar and SLR(1) grammar are equivalent
S2: LR(1) grammar are subset of LALR(1) grammars
| S1 only | |
| S1 and S2 both | |
| S2 only | |
| None of the options |
Question 209 Explanation:
The space of grammars:
FALSE: S1: LR(0) grammar and SLR(1) grammar are equivalent
FALSE: S2: LR(1) grammar are subset of LALR(1) grammars
FALSE: S1: LR(0) grammar and SLR(1) grammar are equivalent
FALSE: S2: LR(1) grammar are subset of LALR(1) grammars
Correct Answer: B
Question 209 Explanation:
The space of grammars:
FALSE: S1: LR(0) grammar and SLR(1) grammar are equivalent
FALSE: S2: LR(1) grammar are subset of LALR(1) grammars
FALSE: S1: LR(0) grammar and SLR(1) grammar are equivalent
FALSE: S2: LR(1) grammar are subset of LALR(1) grammars
