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 6 of 10

Q51.
Production Rule: aAb->agb belongs to which of the following category?
Discuss
Answer: (c).Context Sensitive Language
Q52.
The Grammar can be defined as: G=(V, ∑, p, S)
In the given definition, what does S represents?
Discuss
Answer: (b).Starting Variable
Discuss
Answer: (d).L is a set of 0n1n
Q54.
Which of the expression is appropriate?
For production p: a->b where a∈V and b∈_______
Discuss
Answer: (c).(V+∑)*
Q55.
For S->0S1|e for ∑={0,1}*, which of the following is wrong for the language produced?
Discuss
Answer: (d).None of the mentioned
Q56.
The minimum number of productions required to produce a language consisting of palindrome strings over ∑={a,b} is

a.

3

b.

7

c.

5

d.

6

Discuss
Answer: (c).5
Discuss
Answer: (a).All Regular grammar are context free but not vice versa
Q58.
Are ambiguous grammar context free?
Discuss
Answer: (a).Yes
Q59.
Which of the following is not a notion of Context free grammars?
Discuss
Answer: (d).All of the mentioned
Q60.
State true or false:
Statement: The recursive inference procedure determines that string w is in the language of the variable A, A being the starting variable.
Discuss
Answer: (a).true
Page 6 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!