You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Context Free Language- 2". These 15 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.
Detailed Solution: Question 1
Let be a context free grammar where the rule set R is
Which of the following statements is true?
Detailed Solution: Question 2
Consider the languages:
Which one of the following is TRUE?
Detailed Solution: Question 4
In the context-free grammar below, S is the start symbol, a and b are terminals, and ϵ denotes the empty string.
The grammar generates the language
Detailed Solution: Question 5
In the context-free grammar below, S is the start symbol, a and b are terminals, and ϵ denotes the empty string
Which of the following strings is NOT generated by the grammar?
Detailed Solution: Question 6
The two grammars given below generate a language over the alphabet {x, y, z}
Which one of the following choices describes the properties satisfied by the strings in these languages?
Detailed Solution: Question 7
Consider the grammar given below
Consider the following strings.
Which of the above strings are generated by the grammar ?
Detailed Solution: Question 8
Consider the following grammars. Names representing terminals have been specified in capital letters.
Which one of the following statements is true?
Detailed Solution: Question 9
A CFG G is given with the following productions where S is the start symbol, A is a non-terminal and a and b are terminals.
Which of the following strings is generated by the grammar above?
Detailed Solution: Question 10
The language generated by the above grammar over the alphabet is the set of
Detailed Solution: Question 11
Which of the following languages are context-free?
Detailed Solution: Question 12
Consider the following context-free grammar over the alphabet ∑ = {a,b,c } with S as the start symbol:
Which one of the following represents the language generated by the above grammar?
Detailed Solution: Question 13
If G is a grammar with productions
where S is the start variable, then which one of the following strings is not generated by G ?
Consider a CFG with the following productions.
S is the start symbol, A and B are non-terminals and 0 and 1 are the terminals. The language generated by this grammar is
Detailed Solution: Question 15