Explore topic-wise MCQs in Compilers.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

A_REGULAR_GRAMMAR_IS_ANY_RIGHT-LINEAR_OR_LEFT-LINEAR_GRAMMAR.?$

A. True
B. False
Answer» B. False
2.

Regular_Grammars_generate_Regular_Languages.$

A. True
B. False
Answer» B. False
3.

S ‚Üí abS S ‚Üí a is which grammar$

A. Right Linear Grammar
B. Left Linear Grammar
C. Right & Left Linear Grammar
D. None of the mentioned
Answer» B. Left Linear Grammar
4.

In Right-Linear grammars, all productions have the form: A ‚Üí xB$

A. True
B. False
Answer» B. False
5.

Linear grammar has more than one non-terminal on the right-hand side.

A. True
B. False
Answer» B. False
6.

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

A. Linear
B. Nonlinear
C. Both of the mentioned
D. None of the mentioned
Answer» B. Nonlinear
7.

Non-Linear grammar has has two non-terminals on the right-hand side.

A. True
B. False
Answer» B. False