Which of the following is TRUE?
View worked solution
Answer: B
Let us analyze each option to determine its correctness:
- Option A: Every subset of a regular set is regular.
False. Consider the regular language . Its subset is non-regular. - Option B: Every finite subset of a non-regular set is regular.
True. Every finite set is regular because we can always construct a DFA or write a regular expression for any finite set of strings. Since any finite subset of a non-regular set is, by definition, a finite set, it must be regular. - Option C: The union of two non-regular sets is not regular.
False. Let and its complement . Both are non-regular, but their union is regular. - Option D: Infinite union of finite sets is regular.
False. Any language (including non-regular ones) can be represented as an infinite union of singleton (finite) sets. For example, is non-regular.
Free practice · Your answers on this page are not saved.
