GATE CS 2026 Set 2 | Question 47
Theory of Computation › Regular Grammar · MSQ · 2 marks · Answer: C, D
- Question 47Theory of Computationmsq2 marksConsider the following two finite automata and . Which of the following statements is/are true?

- 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. - A.
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 →