aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 1 Compiler Design | Computer Science
  • Consider the grammar shown below. S $\rightarrow$ C C C $...
Multiple choice

Consider the grammar shown below. S $\rightarrow$ C C C $\rightarrow$ c C | d This grammar is

  1. LL(1)

  2. SLR(1) but not LL(1)

  3. LALR(1) but not SLR(1)

  4. LR(l) but not LALR(1)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Keep practicing — related questions

  • The grammar $S \rightarrow SA|A$ $A \rightarrow a$
  • The grammar S $\rightarrow$ aSa|bS|c is
  • Consider the following statements. (i) Every SLR (1) grammar is unambiguous (ii) There are many unambiguous...
  • Consider the following grammar: S$\rightarrow$SS S$\rightarrow$0 S$\rightarrow$$\epsilon$ Which of the foll...
  • Consider the following grammar. S $\rightarrow$S * E S $\rightarrow$E E $\rightarrow$F + E E $\rightarrow$F...
  • Consider the grammar with non-terminals N = { S, C, S1), terminals T = {a, b, i, t, e}, with S as the start...
  • Consider the grammar with non-terminals N = { S, C, S1), terminals T = {a, b, i, t, e}, with S as the start...
  • Assume that the SLR parser for a grammar G has n1 states and the LALR parser for that grammar has n2 states...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy