You can prepare effectively for Computer Science Engineering (CSE) Theory of Computation with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Normal Forms of Context Free Grammar". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
One of the uses of CNF is to turn parse tree into:
Detailed Solution: Question 1
Which of the following grammar is in Greibach Normal Form?
A. S → AB, A → a, B → b
B. S → aA | A → ϵ
C. S → Aa, A → a
Detailed Solution: Question 2
What is the minimum number of productions present in the below given context free grammar to make it Chomsky Normal Form?
S → XYx
X → xxy
Y → Xz
Detailed Solution: Question 3
A CFG (Context Free Grammar) is said to be in Chomsky Normal Form (CNF), if all the productions are of the form A → BC or A → a. Let G be a CFG in CNF. To derive a string of terminals of length x, the number of products to be used is
Detailed Solution: Question 4
Let G = (V, T, S, P) be any context-free grammar without any λ-productions or unit productions. Let K be the maximum number of symbols on the right of any production in P. The maximum number of production rules for any equivalent grammar in Chomsky normal form is given by:
Where |⋅| denotes the cardinality of the set.
Detailed Solution: Question 5
To obtain a string of n Terminals from a given Chomsky normal form grammar, the number of productions to be used is:
Detailed Solution: Question 6
What is the minimum number of productions needed to add to the below given context free grammar to make it Greibech Normal Form?
S → aSb | ab | bb
Detailed Solution: Question 7
If L(G) is accepted by pushdown automaton and x is a string of length 21 in L(G), how long is a derivative of x in G, if G is Chomsky normal form?
Detailed Solution: Question 8
If a Context Free Grammar G is in Chomsky Normal Form, to derive a string of length 101 number of productions needed is _____.
Detailed Solution: Question 9
Let G be a Context Free Grammar in Chomsky Normal Form. To derive a string (aaaaaa)n where a is terminal variable and n is 5, the number of products to be used is _____.
Detailed Solution: Question 10
18 videos|95 docs|44 tests |