Closure Properties MCQs: 12 Solved Regular Language PYQs with Explanations
Solve 12 regular-language PYQs with proofs, counterexamples, and step-by-step transformations. The set targets the quantifier traps that make closure questions difficult.
KnowledgeGate Team
Exam prep & CS education

Closure properties look easy when they are only a table, but PYQs rarely ask for the table alone. Students lose marks by missing words such as "always", treating finite union as infinite union, or assuming that every subset of a regular language must also be regular. These 12 solved PYQs cover direct closure, derived Boolean operations, counterexamples, and language transformations, and they come from KnowledgeGate's collection of over 30 published questions on this exact subtopic. Use them to strengthen your wider GATE CS exam preparation: identify the quantifier, rewrite the operation, and search for one decisive witness before reading each answer, even when the familiar table is not enough on its own.
Related reading: language closure rules and regular languages.
1. Closure under union, complement and derived Boolean operations
Regular languages are closed under union, intersection, complement and difference. Regular Language Properties: Closure and Decision Tests derives results with De Morgan's laws.
Q1. GATE 2024, see the solved page, MSQ
Let , be two regular languages and a language which is not regular. Which of the following statements is/are always TRUE?
(a) if and only if
(b) is not regular
(c) is not regular
(d) is regular
Answer: (c) and (d).
For (a), take and : the intersection is empty although the languages differ; for (b), makes the union regular. If were regular, double complementation would make regular, a contradiction; (d) follows from complement and union closure.
Q2. GATE 2011, MCQ
Let be a regular language and be a context-free language such that . (For example, let be the language represented by the regular expression \(p^q^\) and be ). Then which of the following is ALWAYS regular?
(a)
(b)
(c)
(d)
Answer: (c).
Because , option (c) is regular. With the supplied \(P=p^q^\) and , is not regular; regularity of or would force to be regular, so neither is guaranteed.
Q3. UGC NET 2017, see the solved page, MCQ
Given the following statements: (A) A class of languages that is closed under union and complementation has to be closed under intersection. (B) A class of languages that is closed under union and intersection has to be closed under complementation. Which of the following options is correct?
(a) Both (A) and (B) are false.
(b) Both (A) and (B) are true.
(c) (A) is true, (B) is false.
(d) (A) is false, (B) is true.
Answer: (c).
Statement (A) follows from . Statement (B) fails for the class of all finite languages over : finite union and intersection stay finite, but the complement of is infinite and leaves the class.
Q4. UGC NET 2016, MCQ
The symmetric difference of two sets and is defined as . The nor of two languages is defined as . Which of the following is correct?
(a) The family of regular languages is closed under symmetric difference but not closed under nor.
(b) The family of regular languages is closed under nor but not closed under symmetric difference.
(c) The family of regular languages are closed under both symmetric difference and nor.
(d) The family of regular languages are not closed under both symmetric difference and nor.
Answer: (c).
For and , the symmetric difference is ; generally it is . Also, , so the basic closure rules prove both constructions regular.
2. Finite union, infinite union and subset traps
Finite closure is safe. Claims using "infinite", "every", or "always" need proof or a counterexample.
Q5. GATE 2020, MCQ
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?
(a) I only
(b) II only
(c) Both I and II
(d) Neither I nor II
Answer: (d).
For I, set and \(L_2=\Sigma^\); their union is the regular language \(\Sigma^\), although is not regular. For II, every singleton is regular, but is not.
Q6. GATE 2007, MCQ
Which of the following is TRUE?
(a) Every subset of a regular set is regular.
(b) Every finite subset of a non-regular set is regular.
(c) The union of two non-regular sets is not regular.
(d) Infinite union of finite sets is regular.
Answer: (b).
Every finite language is regular; for example, has the regular expression . Option (a) fails because \(\{a^n b^n\mid n\ge0\}\subseteq\{a,b\}^\), (d) fails by Q5's singleton union, and (c) fails because a non-regular language and its complement unite to \(\Sigma^\).
Q7. GATE 2016, MCQ
Consider the following two statements: I. If all states of an NFA are accepting states then the language accepted by the NFA is . II. There exists a regular language such that for all languages , is regular. Which one of the following is CORRECT?
(a) Only I is true
(b) Only II is true
(c) Both I and II are true
(d) Both I and II are false
Answer: (b).
For I, let , make accepting, and add no transitions: the NFA accepts but rejects a. For II, choose ; for every , the intersection is either or , and both are regular.
3. Concatenation, repetition and quotient-style operations
Concatenation preserves regularity. Matching copies of an unknown string may exceed finite-state memory; Finite Automata: DFA vs NFA and Subset Construction explains that boundary.
Q8. GATE 2006, see the solved page, MCQ
Let L be a regular language. Consider the constructions on L below: I. repeat(L) = , II. prefix(L) = , III. suffix(L) = , IV. half(L) = . Which of the constructions could lead to a non-regular language?
(a) Both I and IV
(b) Only I
(c) Only IV
(d) Both II and III
Answer: (b).
For and \(L=\Sigma^\), repeat(L) is the non-regular copy language \(\{ww\mid w\in\Sigma^\}\), since its halves must match. Prefix and suffix are quotient constructions, while a finite-state paired simulation proves half regular by tracking the first-half DFA state and an equal-length path to acceptance.
Q9. GATE 2014, MCQ
If and , consider (I) is a regular language (II) L1L2 = . Which one of the following is CORRECT?
(a) Only (I)
(b) Only (II)
(c) Both (I) and (II)
(d) Neither (I) nor (II)
Answer: (a).
Here \(L_1=a^\) and \(L_2=b^\), so \(L_1L_2=a^b^=\{a^i b^j\mid i,j\ge0\}\), which is regular by concatenation closure. The string aab has and , so it belongs to but not to .
Q10. UGC NET 2014, MCQ
Let L be any language. Define even(W) as the strings obtained by extracting from W the letters in the even-numbered positions and even(L) = . We define another language Chop(L) by removing the two leftmost symbols of every string in L given by Chop(L) = . If L is regular language then
(a) even(L) is regular and Chop(L) is not regular.
(b) Both even(L) and Chop(L) are regular.
(c) even(L) is not regular and Chop(L) is regular.
(d) Both even(L) and Chop(L) are not regular.
Answer: (b).
For even(W), abcd maps to bd; a two-state odd/even transducer preserves regularity. For Chop, with , ab + cd = abcd and removing two symbols gives cd; generally it is a finite union of regular left quotients for length-2 strings .
4. Homomorphism and direct regular-set recognition
Translate symbols mechanically or reduce the language to a regular expression. Regular Expressions and Pumping Lemma: Worked Proof separates finite-state patterns from unbounded equality constraints.
Q11. UGC NET 2019, see the solved page, MCQ
Consider and . Define homomorphism by: , . If is the regular language denoted by \(r=(w+x^)(ww)^\), then the regular language is given by
(a)
(b) \((zxyy+(xzy)^)(zxyyzxyy)^\)
(c)
(d)
Answer: (b).
Substitution gives \(h(x^)=(xzy)^\), , and \(h((ww)^)=(zxyyzxyy)^\). Combining the factors gives \((zxyy+(xzy)^)(zxyyzxyy)^\), exactly option (b).
Q12. GATE 2008, MSQ
Which of the following are regular sets?
(a)
(b)
(c)
(d)
Answer: (a) and (d).
Option (a) is \(a^(bb)^\), allowing any number of a symbols and an independently even number of b symbols; option (d) is \((a+b)^c(a+b)^\). Option (b) requires the unbounded ratio , while (c) requires comparing two unbounded counts, so neither is regular.
5. How closure properties are tested in GATE and UGC NET
These PYQs test direct closure in Q1 to Q4, counterexamples to "always" in Q5 to Q7, custom operations in Q8 to Q10, and construction or recognition in Q11 and Q12. Use one routine for all forms.
Underline the quantifier, especially "always", "every", or "infinite".
Rewrite the operation with union, intersection and complement where possible.
Try , , a finite language, and as witnesses.
Ask whether one DFA would need to remember an unbounded count or an entire earlier substring.
A finite combination of closure rules proves regularity. If a machine must compare unbounded quantities or copy an unknown string, seek a counterexample.
6. Closure properties MCQs: the short revision rule
Finite Boolean operations preserve regularity. Arbitrary subsets and infinite unions do not preserve it, and custom transformations must be proved rather than guessed. Re-attempt Q1, Q5, Q8 and Q11 after one week because together they cover direct closure, counterexamples, operation analysis, and symbolic construction. For each one, name the closure rule or counterexample before checking the option letter.
If you want the complete Theory of Computation lesson sequence and more PYQ practice, continue with GATE Guidance by Sanchit Sir. Your immediate task is simpler: rebuild the closure table from proofs, then solve those four questions again without looking at the options.
Keep learning

Grammar Design via Regex MCQs: 12 Solved PYQs with Explanations
Solve 12 grammar and regex PYQs by tracing productions, removing dead branches, tracking symbol counts and proving membership with exact derivations.

Decision Properties MCQs: 10 Solved CFG and PDA Questions
Solve ten Decision Properties MCQs by separating the input model from the property being tested, then checking the relevant algorithm or undecidability result.

Closure Properties MCQs for Turing Machines: 12 Solved Questions
Test the closure rules that separate decidable and Turing-recognisable languages. These 12 solved MCQs show how complement, difference, dovetailing, and countability shape the answers.

Regularity and Identification MCQs: 11 Solved Questions with Explanations
Solve 11 regularity and identification MCQs with concise explanations. Learn when finite memory, closure, pumping, or simplification gives the cleanest proof.