Context Free Language: GATE CS Previous Year Questions

Context Free Language · Theory of Computation

41 questions · asked in 24 of 27 years (2000–2026)

MCQ 36 · MSQ 51-mark 23 · 2-mark 18

2000Questions per year2026

Questions 31–35 of 41

Q31GATE 20061 markMCQ−0.33 if wrong
Let L be a context-free language and M a regular language. Then the language L∩ML \cap M is

Q32GATE 20061 markMCQ−0.33 if wrong
Let L1={0n+m1n0m∣n,m≥0}L_{1}=\{0^{n+m}1^{n}0^{m}|n,m\geq 0\}
L2={0n+m1n+m0m∣n,m≥0}L_{2}=\{0^{n+m}1^{n+m}0^{m}|n,m\geq 0\}
L3={0n+m1n+m0n+m∣n,m≥0}L_{3}=\{0^{n+m}1^{n+m}0^{n+m}|n,m\geq 0\}

Which of these languages are NOT context free?

Q33GATE 20051 markMCQ−0.33 if wrong
The language {0n1n2n∣1≤n≤106}\{0^n 1^n 2^n \mid 1 \leq n \leq 10^6\} is

Q34GATE 20051 markMCQ−0.33 if wrong
Let L be a regular language and M be a context-free language, both over the alphabet Σ\Sigma. Let LcL^c and McM^c denote the complements of L and M respectively. Which of the following statements about the language Lc∪McL^c\cup M^c is TRUE?

Q35GATE 20051 markMCQ−0.33 if wrong
Consider the languages:

L1={wwR∣w∈{0,1}∗}L_{1}=\{ww^{R}|w\in \{0,1\}*\}
L2={w#wR∣w∈{0,1}∗}L_{2}=\{w\#w^{R}|w\in \{0,1\}*\},where # is a special symbol
L3={ww∣w∈{0,1}∗}L_{3}=\{ww|w\in \{0,1\}*\}

Which one of the following is TRUE?

Keep practising

Topics in Theory of Computation

All CS topics ›