adplus-dvertising

Welcome to the Context Free Grammars MCQs Page

Dive deep into the fascinating world of Context Free Grammars with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Context Free Grammars, a crucial aspect of Formal Languages and Automata Theory. In this section, you will encounter a diverse range of MCQs that cover various aspects of Context Free Grammars, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Formal Languages and Automata Theory.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Context Free Grammars. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Formal Languages and Automata Theory.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Context Free Grammars. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Context Free Grammars MCQs | Page 7 of 10

Q61.
Which of the following statements are correct for a concept called inherent ambiguity in CFL?
Discuss
Answer: (a).Every CFG for L is ambiguous
Q62.
Is the following statement correct?
Statement: Recursive inference and derivation are equivalent.
Discuss
Answer: (a).Yes
Q63.
A->aA| a| b
The number of steps to form aab:

a.

2

b.

3

c.

4

d.

5

Discuss
Answer: (b).3
Q64.
An expression is mentioned as follows. Figure out number of incorrect notations or symbols, such that a change in those could make the expression correct.
L(G)={w in T*|S→*w}
Discuss
Answer: (a).0 Errors
Discuss
Answer: (b).Context free language
Q66.
Which among the following is the correct option for the given grammar?
G->X111|G1,X->X0|00
Discuss
Answer: (a).{0^a1^b|a=2,b=3}
Q67.
Which of the following the given language belongs to?
L={a^mb^mc^m| m>=1}
Discuss
Answer: (d).None of the mentioned
Q68.
Choose the correct option:
Statement: There exists two inference approaches:

1. Recursive Inference
2. Derivation
Discuss
Answer: (a).true
Q69.
Choose the correct option:
Statement 1: Recursive Inference, using productions from head to body.

Statement 2: Derivations, using productions from body to head.
Discuss
Answer: (b).Statement 1 and Statement 2, both are false
Q70.
State true or false:
Statement: Every right-linear grammar generates a regular language.
Discuss
Answer: (a).True
Page 7 of 10

Suggested Topics

Are you eager to expand your knowledge beyond Formal Languages and Automata Theory? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!