GATE Computer ScienceEasyGATE CS (PYQ pattern)
Which one of the following statements is FALSE?
- A. Every finite language is regular
- B. Every subset of a regular language is regular
- C. The union of two regular languages is regular
- D. The complement of a regular language is regular
Correct answer: B. Every subset of a regular language is regular
{aⁿbⁿ} is a non-regular subset of the regular language a*b*. The other statements are standard closure properties.
More Theory of Computation questions
- Which regular expression denotes exactly the set of strings over {a, b} with an EVEN number of a's (zero included)?
- A DFA has 8 states. To decide whether the language it accepts is infinite, it suffices to check whether it accepts some string whose…
- Which of the following statements are correct? I. The reversal of a deterministic context-free language is always deterministic…
- Which of the following statements are correct? I. Recursively enumerable languages are closed under union and intersection. II…
- L₁ and L₂ are context-free languages. Which statement about L₁ ∩ L₂ is always correct?
- The grammar S → aSb | SS | ab generates 14 strings of length 8. How many of these strings have MORE than one parse tree?