389 views
2 votes
2 votes

Which of the following is/are correct? (Mark all the appropriate choices)

  1. A regular grammar is any right-linear or left-linear grammar.
  2. $A \rightarrow \alpha A \mid \beta$ is a right linear grammar, where $\alpha,\beta \in T^{\ast},$ where $T$ is the set of terminals
  3. $A \rightarrow A \alpha \mid \beta$ is a left linear grammar, where $\alpha,\beta \in T^{\ast},$ where $T$ is the set of terminals
  4. Any grammar which generates a regular language, is a regular grammar

1 Answer

4 votes
4 votes
First three are the basic properties of regular grammar.

For every regular language there exists a regular grammar. But even a non-regular grammar can generate a regular language. So, option D is false.

So, the correct answer is $A;B;C;$
Answer:

Related questions