

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
Regular Grammars generate Regular Languages. |
A. | True |
B. | False |
Answer» B. False | |
2. |
A Regular Grammar is any right-linear or left-linear grammar. |
A. | True |
B. | False |
Answer» B. False | |
3. |
Which Grammar is it? |
A. | Right Linear |
B. | Left Linear |
C. | None of the mentioned |
D. | Right & Left Linear |
Answer» C. None of the mentioned | |
4. |
What are the two types of Linear Grammar? |
A. | Right Linear |
B. | Left Linear |
C. | None of the mentioned |
D. | Right & Left Linear |
Answer» E. | |
5. |
In Right-Linear grammars, all productions have the form: A → xB. |
A. | True |
B. | False |
Answer» B. False | |
6. |
Linear grammar has more than one non-terminal on the right-hand side. |
A. | True |
B. | False |
Answer» B. False | |
7. |
Which type of grammar is it? |
A. | Linear |
B. | Nonlinear |
C. | Linear & Nonlinear |
D. | None of the mentionedView Answer |
Answer» B. Nonlinear | |
8. |
Non-Linear grammar has two non-terminals on the right-hand side. |
A. | True |
B. | False |
Answer» B. False | |