adplus-dvertising
frame-decoration

Question

The production Grammar {S->aSbb, S->abb} is

a.

type-3 grammar

b.

type-2 grammar

c.

type-1 grammar

d.

type-0 grammar

Answer: (b).type-2 grammar

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The production Grammar {S->aSbb, S->abb} is

Similar Questions

Discover Related MCQs

Q. S → SS S → λ S → aSb S → bSa which type of grammar is it?

Q. S → abS S → a is which grammar ?

Q. What are the two types of Linear Grammar?

Q. Which Type of Grammar is it?

S → Aa A → Aab | λ

Q. Which of the following is the most general phase structured grammar

Q. Which of the following grammars are not phase structured ?

Q. CSG can be recognized by

Q. Which of the following is/are the suitable approaches for inferencing?

Q. If w belongs to L(G), for some CFG, then w has a parse tree, which defines the syntactic structure of w. w could be:

Q. Which of the following does the given parse tree correspond to?

Q. The entity which generate Language is termed as:

Q. Production Rule: aAb->agb belongs to which of the following category?

Q. The Grammar can be defined as: G=(V, ∑, p, S)
In the given definition, what does S represents?

Q. Which among the following cannot be accepted by a regular grammar?

Q. Which of the expression is appropriate?
For production p: a->b where a∈V and b∈_______

Q. For S->0S1|e for ∑={0,1}*, which of the following is wrong for the language produced?

Q. The minimum number of productions required to produce a language consisting of palindrome strings over ∑={a,b} is

Q. Which of the following statement is correct?

Q. Are ambiguous grammar context free?

Q. Which of the following is not a notion of Context free grammars?