GATE CS 2026 Set 2 | Question 47

Theory of Computation › Regular Grammar · MSQ · 2 marks · Answer: C, D

  1. Question 47Theory of Computationmsq2 marks
    Consider the following two finite automata and . Which of the following statements is/are true?
    GATE CS 2026 Set 2 Question 47 figure
    • A.
    • B.
      is a proper subset of
    • C.
      ✓
    • D.
      consists of all strings in whose length is divisible by 3
      ✓

    Answer: C, D

    Solution

    Answer: (C), (D) Tracing both automata: and are different languages (so (A) is false) and neither is contained in the other (so (B) is false). Both accept only the empty string in common, so — (C) true. Every non-empty accepted string of either machine has length a multiple of 3, and closing under concatenation yields exactly all strings of length divisible by 3 — (D) true.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2026 Set 2 in real GATE exam mode

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

Create free account →