McqMate

Q. |
## What is the highest type number which can be applied to the following grammar? S —>Aa, A —> Ba, B —>abc |

A. | Type 0 |

B. | Type 1 |

C. | Type 2 |

D. | Type 3 |

Answer» C. Type 2 |

3.8k

0

Do you find this helpful?

21

View all MCQs in

Theory of ComputationNo comments yet

- 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?
- Give a production grammar for the language L = {x/x ∈ (a,b)*, the number of a’s in x is multiple of 3}.
- Type-1 Grammar is known as_____________
- All NonNull words of the CFL can be generated by the corresponding CFG which is in CNF i.e the grammar in CNF will generate the same language except the:
- Which of the following strings is not generated by the following grammar? S → SaSbS ε
- Let L denotes the language generated by the grammar S – OSO/00. Which of the following is true?
- 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.
- 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