Regular Expression: GATE CS Previous Year Questions

Regular Expression · Theory of Computation

19 questions · asked in 14 of 27 years (2000–2026)

MCQ 16 · MSQ 1 · NAT 21-mark 15 · 2-mark 4

2000Questions per year2026

Questions 11–15 of 19

Q11GATE 20081 markMCQ−0.33 if wrong
Which of the following regular expressions describes the language over{0,1}\{0, 1\} consisting of strings that contain exactly two 1's?

Q12GATE 20071 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗ (aa+bb) (a+b)∗R = (a + b)^* \ (aa + bb) \ (a + b)^*
Which one of the regular expressions given below defines the same language as defined by the regular expression R ?

Q13GATE 20071 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗(aa+bb)(a+b)∗R = (a + b)^* (aa + bb) (a + b)^*
Which deterministic finite automaton accepts the language represented by the regular expression R?
S0 S1 S2 S3 S4 a b a b b a b a a b (A) S0 S1 S2 S3 S4 a b a b a b a b a b (B) S3 S3 S3 S3 a a a b a b a, b (C) S0 S1 S2 S3 a a b b b a a, b (D)

Q14GATE 20071 markMCQ−0.33 if wrong
Consider the regular expression R=(a+b)∗(aa+bb)(a+b)∗R = (a + b)^* (aa + bb) (a + b)^*
Which of the following non-deterministic finite automata recognizes the language defined by the regular expression R? Edges labeled λ\lambda denote transitions on the empty string.
(A) S0 S1 S2 S3 a b a b b a a,b a,b (B) S0 S1 S2 S3 a b a b a b a,b a,b (C) S0 S1 S2 S3 a b a b b a a,b a,b (D) S0 S1 S2 S3 a b a b b a a,b a,b a,b

Q15GATE 20061 markMCQ−0.33 if wrong
Which regular expression best describes the language accepted by the non-deterministic automaton below?
S S S t a a,b b a,b

Keep practising

Topics in Theory of Computation

All CS topics ›