Regular Language: GATE CS Previous Year Questions

Regular Language · Theory of Computation

29 questions · asked in 18 of 27 years (2000–2026)

MCQ 25 · MSQ 3 · NAT 11-mark 20 · 2-mark 9

2000Questions per year2026

Questions 11–15 of 29

Q11GATE 2016 (Session 2)1 markMCQ−0.33 if wrong
Language L1 is defined by the grammar: S1→aS1b∣εS_{1}\rightarrow aS_{1}b|\varepsilon
Language L2 is defined by the grammar: S2→abS2∣εS_{2}\rightarrow abS_{2}|\varepsilon
Consider the following statements:
P: L1 is regular
Q: L2 is regular
Which one of the following is TRUE?

Q12GATE 2015 (Session 2)2 marksMCQ−0.67 if wrong
Which of the following languages is/are regular?
L1:{wxwR∣w,x∈{a,b}∗  and  ∣w∣,∣x∣>0},wRL_{1}:\{wxw^{R}|w,x \in \{a,b\}^{*} \; and \; |w|,|x| \gt 0 \}, w^{R} is the reverse of string w
L2:{anbm∣m≠n  and  m,n≥0}L_{2}:\{a^{n}b^{m}|m\neq n \; and \; m,n\geq 0\}
L3:{apbqcr∣p,q,r≥0}L_{3}:\{a^{p}b^{q}c^{r}|p,q,r\geq 0\}

Q13GATE 2014 (Session 1)1 markMCQ−0.33 if wrong
Which one of the following is TRUE?

Q14GATE 2014 (Session 2)1 markMCQ−0.33 if wrong
If L1={an∣n≥0}L_{1}=\{a^{n}|n\geq 0\} and L2={bn∣n≥0}L_{2}=\{b^{n}|n\geq 0 \}, Consider
(I) L1⋅L2L_{1}\cdot L_{2} is a regular language
(II) L1⋅L2={anbn∣n≥0}L_{1} \cdot L_{2}= \{a^{n}b^{n}|n \geq 0\}
Which one of the following is CORRECT?

Q15GATE 2014 (Session 2)2 marksMCQ−0.67 if wrong
Let L1={w∈{0,1}∗∣wL_{1}=\{w \in \{0,1\}*|w has at least as many occurrences of (110)'s as (011)'s}.
Let L2={w∈{0,1}∗∣wL_{2}=\{w \in \{0,1\}*|w has at least as many occurrence of (000)'s as (111)'s}.

Which one of the following is TRUE?

Keep practising

Topics in Theory of Computation

All CS topics ›