GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 7

Finite subsets are regular

Theory of Computation · Regular Expressions & Languages · Full GATE CSE 2007 paper

GATE 2007, Q7 1 mark · MCQ
Report issue

Regular Expressions & Languages

Question 7, GATE 2007: Which statement about regular languages is true?
Options:
(A) Every subset of a regular set is regular
(B) Every finite subset of a nonregular set is regular
(C) The union of two nonregular sets is nonregular
(D) An infinite union of finite sets is regular
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Approach. A finite language is described by a finite union of its individual words. Closure under finite union does not imply closure under an arbitrary infinite union.

2. Derivation and interpretation. Every finite language is regular, regardless of the parent set, so B. A fails because nonregular languages are subsets ofΣ*. C fails by taking a nonregular language and its nonregular complement, whose union is Σ*. D fails because any nonregular language is an infinite union of singleton finite languages.

Original paper, page 3