McqMate

Q. |
## The following grammar G = (N, T, P, S)**spaceN = {S, A, B, C, D, E}**spaceT = {a, b, c}**spaceP : S → aAB**spaceAB → CD**spaceCD → CE**spaceC → aC**spaceC → b**spacebE → bc is |

A. | is type 3 |

B. | is type 2 but not type 3 |

C. | is type 1 but not type 2 |

D. | is type 0 but not type 1 |

Answer» C. is type 1 but not type 2 |

2.9k

0

Do you find this helpful?

31

View all MCQs in

Theory of ComputationNo comments yet

- Which of the following strings is not generated by the following grammar? S → SaSbS ε
- The following grammar G = (N, T, P, S) N = {S, A, B} T = {a, b, c} P : S → aSa S → aAa A → bB B → bB B → c is
- The following grammar G = (N, T, P, S) N = {S, A, B, C, D, E} T = {a, b, c} P : S → aAB AB → CD CD → CE C → aC C → b bE → bc is
- The following grammar G = (N, T, P, S) N = {S, A, B, C} T = {a, b, c} P : S → aS A → bB B → cC C → a is
- Let L denotes the language generated by the grammar S – OSO/00. Which of the following is true?
- What is the highest type number which can be applied to the following grammar? S —>Aa, A —> Ba, B —>abc
- Which of the following are decidable? 1) Whether the intersection of two regular language is infinite. 2) Whether a given context free language is regular. 3) Whether two push down automata accept the same language. 4) Whether a given grammar is context free.
- Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ε} I. G is ambiguous II. G produces all strings with equal number of a’s and b’s III. G can be accepted by a deterministic PDA. Which combination below expresses all the true statements about G?
- Type-1 Grammar is known as_____________
- Context free grammar is not closed under