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 "Test: DPDA & Context Free Languages". 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.
Context free grammar is called Type 2 grammar because of ______________ hierarchy.
Detailed Solution: Question 1
a→bRestriction: Length of b must be atleast as much length of a.Which of the following is correct for the given assertion?
Detailed Solution: Question 2
From the definition of context free grammars,
G=(V, T, P, S)
What is the solution of VÇT?
Detailed Solution: Question 3
If P is the production, for the given statement, state true or false.P: V->(V∑T)* represents that the left hand side production rule has no right or left context.
Detailed Solution: Question 4
There exists a Context free grammar such that:X->aXWhich among the following is correct with respect to the given assertion?
Detailed Solution: Question 5
If the partial derivation tree contains the root as the starting variable, the form is known as:
Detailed Solution: Question 6
Find a regular expression for a grammar which generates a language which states :
L contains a set of strings starting wth an a and ending with a b, with something in the middle.
Detailed Solution: Question 7
Which of the following is the correct representation of grammar for the given regular expression?
a(aUb)*b
Detailed Solution: Question 8
Detailed Solution: Question 9
A CFG for a program describing strings of letters with the word “main” somewhere in the string:
Detailed Solution: Question 10
18 videos|100 docs|44 tests |