GATE Computer ScienceHardGATE CSE · NIELIT

How many of the following statements are true? (i) DCFLs are closed under complement. (ii) CFLs are closed under intersection with a regular language. (iii) CFLs are closed under set difference. (iv) Recursive languages are closed under union. (v) Recursively enumerable languages are closed under complement. (vi) Context-sensitive languages are closed under complement. (vii) DCFLs are closed under union. (viii) Regular languages are closed under infinite union.

  1. A. 4
  2. B. 3
  3. C. 5
  4. D. 6

Correct answer: A. 4

True: (i), (ii), (iv), (vi). False: (iii) (complement would follow), (v) (L and L̄ both RE implies recursive), (vii) and (viii) (e.g. the union of the singletons {aⁿbⁿ} is non-regular).

More Theory of Computation questions

Exams that ask this topic