Which of the following statements about regular languages is NOT true?
2006
Which of the following statements about regular languages is NOT true?
Answer: C. Every subset of a regular language is regular — ConceptA regular language is one recognized by a finite automaton. Regular languages are closed under certain language operations, but regularity is not…
- A.
Every language has a regular superset
- B.
Every language has a regular subset
- C.
Every subset of a regular language is regular
- D.
Every subset of a finite language is regular
Attempted by 157 students.
Show answer & explanation
Correct answer: C
Concept
A regular language is one recognized by a finite automaton. Regular languages are closed under certain language operations, but regularity is not automatically inherited by every arbitrary subset.
Application
For any language L over an alphabet Σ, L is contained in Σ*. A finite automaton recognizes Σ*, so every language has a regular superset.
The empty language ∅ is a subset of every language. A finite automaton can reject every input, so ∅ is regular and every language has a regular subset.
Take the regular language Σ* over Σ = {a, b}. It contains {anbn | n ≥ 0}, which is not regular by the pumping lemma; therefore an arbitrary subset of a regular language need not be regular.
Every subset of a finite language is finite. Each finite language is regular because a finite automaton can recognize its finitely many strings.
Cross-check and contrast
The superset claim follows from the universal regular language Σ*.
The subset claim follows from the regular empty language ∅.
The finite-language claim follows because subsets preserve finiteness.
Hence, the statement that is NOT true is: Every subset of a regular language is regular.
A video solution is available for this question — log in and enroll to watch it.
Explore the full course: Iocl Engineers Officers Grade A Paper 2