GateAI
Regular Expressions and Finite Automata

GATE CSE 2014 Set 1 · Q16

MCQ1 markEasy

Time

Consider the finite automaton in the following figure. What is the set of reachable states for the input string 0011?

GATE CSE 2014 Set 1 Q16 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) {q0, q1, q2}

Regular Expressions and Finite Automata

We can trace the set of reachable states step-by-step starting from the initial state q0q_0 with the input string 00110011:

  1. Initial state:{q0}\{q_0\}

  2. On first input symbol '0':

    δ(q0,0)={q0}\delta(q_0, 0) = \{q_0\}

    Set of states = {q0}\{q_0\}

  3. On second input symbol '0':

    δ(q0,0)={q0}\delta(q_0, 0) = \{q_0\}

    Set of states = {q0}\{q_0\}

  4. On third input symbol '1':

    δ(q0,1)={q0,q1}\delta(q_0, 1) = \{q_0, q_1\}

    Set of states = {q0,q1}\{q_0, q_1\}

  5. On fourth input symbol '1':

    δ(q0,1)∪δ(q1,1)={q0,q1}∪{q2}={q0,q1,q2}\delta(q_0, 1) \cup \delta(q_1, 1) = \{q_0, q_1\} \cup \{q_2\} = \{q_0, q_1, q_2\}

Thus, the set of reachable states is {q0,q1,q2}\{q_0, q_1, q_2\}, which corresponds to option (A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Regular Expressions and Finite Automata previous year question is Q16 of the GATE CSE 2014 Set 1 paper. Find more GATE CSE PYQs on Regular Expressions and Finite Automata in Theory of Computation, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Regular Expressions and Finite Automata PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Regular Expressions and Finite Automata in GATE CSE

Regular Expressions and Finite Automata has 41 GATE CSE PYQs across 24 papers from 2011 to 2026. 14 of them are 1-mark MCQs like this one, and GATE CSE 2014 Set 1 has 3.

How GATE tests Regular Expressions and Finite Automata

More from GATE CSE 2014 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 1 · Q16 · MCQ

Consider the finite automaton in the following figure. What is the set of reachable states for the input string 0011?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.