GATE CS 2025, set 1 · Question 50 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks
Consider the following deterministic finite automaton (DFA) defined over the alphabet, Σ = {a, b}. Identify which of the following language(s) is/are accepted by the given DFA.

- (A) The set of all strings containing an even number of b's.
- (B) The set of all strings containing the pattern bab.
- (C) The set of all strings ending with the pattern bab.
- (D) The set of all strings not containing the pattern aba.
Answer
Answer (C)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes