GATE CS 2021 Set 2 | Question 46

Theory of Computation › Regular Grammar · MCQ · 2 marks · Answer: C

  1. Question 46Theory of Computationmcq2 marks
    Consider the following two statements about regular languages. : Every infinite regular language contains an undecidable language as a subset. : Every finite language is regular. Which one of the following choices is correct?
    • A.
      Only is true
    • B.
      Only is true
    • C.
      Both and are true
      ✓
    • D.
      Neither nor is true

    Answer: C

    Solution

    An infinite language has uncountably many subsets but only countably many are decidable, so it must contain an undecidable subset — is true. Every finite language is regular (a finite union of single-string languages) — is true.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2021 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →