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 21–25 of 29

Q21GATE 20082 marksMCQ−0.67 if wrong
Which of the following are regular sets?

I.{anb2m∣n≥0,m≥0}I. \{a^{n}b^{2m}|n\geq 0,m\geq 0\}
II. {anbm∣n=2m}\{a^{n}b^{m}|n=2m\}
III. {anbm∣n≠m}\{a^{n}b^{m}|n\neq m\}
IV. {xcy∣x,y∈{a,b}∗}\{xcy|x,y\in \{a,b\}^*\}

Q22GATE 20071 markMCQ−0.33 if wrong
Which of the following languages is regular?

Q23GATE 20061 markMCQ−0.33 if wrong
Let L be a regular language. Consider the constructions on L below:
I. repeat(L)={ww∣w∈L}\text{repeat} (L) = \{ww \mid w \in L\}
II. prefix(L)={u∣∃v:uv∈L}\text{prefix} (L) = \{u \mid \exists v : uv \in L\}
III. suffix(L)={v∣∃u:uv∈L}\text{suffix} (L) = \{v \mid \exists u: uv \in L\}
IV. half(L)={u∣∃v:∣v∣=∣u∣ and uv∈L}\text{half} (L) = \{u \mid \exists v: | v | = | u | \text{ and } uv \in L\}
(The linked part asks which of these constructions could lead to a non-regular language; only I can.)
Which choice of L is best suited to support your answer above?

Q24GATE 20061 markMCQ−0.33 if wrong
Let L be a regular language. Consider the constructions on L below:
I. repeat(L)={ww∣w∈L}\text{repeat} (L) = \{ww \mid w \in L\}
II. prefix(L)={u∣∃v:uv∈L}\text{prefix} (L) = \{u \mid \exists v : uv \in L\}
III. suffix(L)={v∣∃u:uv∈L}\text{suffix} (L) = \{v \mid \exists u: uv \in L\}
IV. half(L)={u∣∃v:∣v∣=∣u∣ and uv∈L}\text{half} (L) = \{u \mid \exists v: | v | = | u | \text{ and } uv \in L\}
Which of the constructions could lead to a non-regular language?

Q25GATE 20061 markMCQ−0.33 if wrong
Which of the following statements about regular languages is NOT true ?

Keep practising

Topics in Theory of Computation

All CS topics ›