retagged by
2,827 views
2 votes
2 votes

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

  1. $S1$ only
  2. $S1$ and $S2$ both
  3. $S2$ only
  4. None of the options
retagged by

1 Answer

Best answer
5 votes
5 votes

Answer: B. U can chek this diagram

selected by
Answer:

Related questions

2 votes
2 votes
4 answers
1
admin asked Mar 30, 2020
8,863 views
Which of the following is machine independent optimization?Loop optimizationRedundancy EliminationFoldingAll of the option
0 votes
0 votes
1 answer
2
admin asked Mar 30, 2020
1,249 views
The grammar $S\rightarrow aSb\mid bSa\mid SS\mid \varepsilon $ is:Unambiguous CFGAmbiguous CFGNot a CFGDeterministic CFG
1 votes
1 votes
1 answer
3
admin asked Mar 30, 2020
1,795 views
The optimization phase in a compiler generallyReduces the space of the codeOptimizes the code to reduce execution timeBoth (A) and (B)Neither (A) nor (B)