GATE 2025 set1 · CS · MSQ · 2 marks · Theory of Computation › Regular Languages & Finite Automata
GATE 2025 set1 Computer Science and Information Technology question: Consider the following deterministic finite automaton (DFA) defined over the alphabet, =…
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.
Show answer
Official answer: C
Practise this question with exam-style marking