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: Theory of Computation - 1". 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.
Which of the following is sufficient to convert an arbitrary Context Free Grammar (CFG) to an LL(1) grammar?
Detailed Solution: Question 1
Which of the following languages accept pumping lemma?
Detailed Solution: Question 2
Which of the following languages is generated by the given grammar?
S → aS | bS | ϵ
Detailed Solution: Question 3
Identify the language generated by the following grammar, where S is the start variable.
S → XY
X → aX | a
Y → aYb | ϵ
Detailed Solution: Question 4
Language L1 is defined by the grammar: S1 → aS1b|ϵ
Language L2 is defined by the grammar: S2 → abS2|ϵ
Consider the following statements:
P: L1 is regular
Q: L2 is regular
Which one of the following is TRUE?
Detailed Solution: Question 5
Consider the language L = {an |n ≥ 0} ∪ {anbn| n ≥ 0} and the following statements.
I. L is deterministic context-free.
II. L is context-free but not deterministic context-free.
III. L is not LL(k) for any k.
Which of the above statements is/are TRUE?
Detailed Solution: Question 6
Consider the following statements.
I. If L1 ∪ L2 is regular, then both L1 and L2 must be regular.
II. The class of regular languages is closed under infinite union.
Which of the above statements is/are TRUE?
Detailed Solution: Question 7
For Σ = {a, b}, let us consider the regular language L = {x|x = a2+3k or x = b10+12k k ≥ 0}.
Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for L?
Detailed Solution: Question 8
Assume the R is a relation on a set A, aRb is partially ordered such that a and b are _____________
Detailed Solution: Question 9
A regular language over an alphabet ∑ is one that cannot be obtained from the basic languages using the operation
Detailed Solution: Question 10