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 16–20 of 29

Q16GATE 20131 markMCQ−0.33 if wrong
Consider the languages L1=ϕL_{1}=\phi and L2={a}L_{2}=\{a\}. Which one of the following represents L1L2∗∪L1∗L_{1} L_{2}^{*} \cup L_{1}^{*}?

Q17GATE 20121 markMCQ−0.33 if wrong
Given the language L = {ab, aa, baa}, which of the following strings are in L*?
1) abaabaaabaa
2) aaaabaaaa
3) baaaaabaaaab
4) baaaaabaa

Q18GATE 20111 markMCQ−0.33 if wrong
Let P be a regular language and Q be a context free language such that Q ⊆\subseteq P. (For example, let P be the language represented by the regular expression p*q* and Q be {pnqn∣n∈N}\{p^{n}q^{n}|n\in N\} Then which of the following is ALWAYS regular?

Q19GATE 20091 markMCQ−0.33 if wrong
S→\rightarrowaSa|bSb|a|b; The language generated by the above grammar over the alphabet {a,b} is the set of

Q20GATE 20082 marksMCQ−0.67 if wrong
Which of the following languages is (are) non-regular?
L1={0m1n∣0≤m≤n≤10000}L_1 = \{0^m1^n \mid 0 \leq m \leq n \leq 10000\}
L2={w∣wL_2 = \{w \mid w reads the same forward and backward}\}
L3={w∈{0,1}∗∣wL_3 = \{w \in \{0, 1\} ^* \mid w contains an even number of 0's and an even number of 1's}\}

Keep practising

Topics in Theory of Computation

All CS topics ›