Consider the following languages. L1 = {0p 1q 0r p,q,r ≥ 0} L2 = {0p 1q 0r p,q,r ≥ 0, p e r} Which one of the following statements is FALSE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2013 · Q32
Time
Select one answerSingle correct
Solution
Official answer: D) Complement of L1 is context-free but not regular.
Regular and Context-Free LanguagesLet us analyze each statement:
Nature of : , which is a regular language.
Complement of : Since regular languages are closed under complementation, the complement of is also regular (and hence context-free). Statement (D) claims that the complement of is context-free *but not regular*, which is FALSE.
Nature of : $L_2 = \{0^p 1^q 0^r \mid p
e r\}00L_2$ is a deterministic context-free language (DCFL), so (A) is true.
Intersection : Since , , which is context-free, making (B) true.
Complement of : DCFLs are closed under complement, so the complement of is a DCFL, and all context-free languages are recursive (decidable), making (C) true.
Therefore, the statement that is FALSE is (D).
Try the question first, then check your work.
Examiner trap
Check whether can be represented by a simple regular expression and recall the closure properties of regular languages under complementation.
This Regular and Context-Free Languages previous year question is Q32 of the GATE CSE 2013 paper. Find more GATE CSE PYQs on Regular and Context-Free Languages in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Regular and Context-Free Languages PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Regular and Context-Free Languages has 21 GATE CSE PYQs across 13 papers from 2011 to 2026. 9 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2013.
How GATE tests Regular and Context-Free LanguagesIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.