Skip to content

Paper II · Unit 8: Theory of Computation and Compilers

Context Free Language

Context Free Language is a topic inside Unit 8 (Theory of Computation and Compilers) of UGC NET Computer Science and Applications, Paper II (code 87). GateIQ has published 67 questions classified under this topic — 29% of everything recorded in this unit, and 66 of them carry a written solution.

What this topic covers

Pushdown Automaton (PDA), Non-Deterministic Pushdown Automaton (NPDA), Context Free Grammar, Chomsky Normal Form, Greibach Normal Form, Ambiguity, Parse Tree Representation of Derivation Trees, Equivalence of PDA’s and Context Free Grammars; Properties of Context Free Language

Syllabus wording above is the official heading for this topic; the question counts are GateIQ’s own classification of its published archive.

Try Context Free Language PYQs free

Attempt the 5 most recent published questions on this topic right here, with the published answer and explanation after each check. No account is needed and nothing is saved. Practice tracking and analytics are part of UGC IQ.

0 of 5 checked
  1. 1Previous year question

    Consider the following language :
    L={w∈{a,b,c}∗:na(ω)+nb(ω)=nc(ω)}L=\left\{w \in\{a, b, c\} *: n_{a}(\omega)+n_{b}(\omega)=n_{c}(\omega)\right\}
    L\mathrm{L} is

    Choose an option to check it.
  2. 2Previous year question

    Consider the following statements about Context Free Language (CFL)\text{(CFL)} :
    Statement I: CFL\text{CFL} is closed under homomorphism.
    Statement II: CFL\text{CFL} is closed under complement.

    Which of the following is correct?

    Choose an option to check it.
  3. 3Previous year question

    Consider the production rules of grammar G:
    S→AbBA→aAb∣λB→bB∣λ\begin{array}{l} \mathrm{S} \rightarrow \mathrm{AbB} \\ \mathrm{A} \rightarrow \mathrm{aAb} \mid \lambda \\ \mathrm{B} \rightarrow \mathrm{bB} \mid \lambda \end{array}
    Which of the following language LL is generated by grammer GG ?

    Choose an option to check it.
  4. 4Previous year question

    The reduced grammar equivalent to the grammar, whose production rules are given below, is

    S→AB∣CAB→BC∣ABA→aC→aB∣b\begin{array}{l} \mathrm{S} \rightarrow \mathrm{AB} \mid \mathrm{CA} \\ \mathrm{B} \rightarrow \mathrm{BC} \mid \mathrm{AB} \\ \mathrm{A} \rightarrow \mathrm{a} \\ \mathrm{C} \rightarrow \mathrm{a} \mathrm{B} \mid \mathrm{b} \end{array}

    Choose an option to check it.
  5. 5Previous year question

    Consider the following NPDA\text{NPDA} =({q0,q1,qf}{a,b},{1,z},δ,q0,z,{qf})=\left(\left\{q_{0}, q_{1}, q_{f}\right\}\{a, b\},\{1, z\}, \delta, q_{0}, z,\left\{q_{f}\right\}\right)
    δ(q0,λ,z)={(qf,z)}δ(q0,a,z)={(q1,11z)}δ(q1,a,1)={(q1,111)}δ(q1,b,1)={(q1,λ)}δ(q1,λ,z)={(qf,z)}\begin{array}{l} \delta\left(q_{0}, \lambda, z\right)=\left\{\left(q_{f}, z\right)\right\} \\ \delta\left(q_{0}, a, z\right)=\left\{\left(q_{1}, 11 z\right)\right\} \\ \delta\left(q_{1}, a, 1\right)=\left\{\left(q_{1}, 111\right)\right\} \\ \delta\left(q_{1}, b, 1\right)=\left\{\left(q_{1}, \lambda\right)\right\} \\ \delta\left(q_{1}, \lambda, z\right)=\left\{\left(q_{f}, z\right)\right\} \end{array}
    Which of the following Language LL is accepted by NPDA\text{NPDA}?

    Choose an option to check it.

62 more questions on Context Free Language

These 5 are free to try without an account. The rest of the published questions on Context Free Language are part of UGC IQ: see what it includes, or create an account to get started.

Context Free Language: questions people ask

How many UGC NET Computer Science questions are asked on Context Free Language?

GateIQ has published 67 UGC NET Computer Science previous year questions on Context Free Language, and 66 of them carry a written solution. That is 29% of the questions in Unit 8, Theory of Computation and Compilers.

Which unit of UGC NET Computer Science Paper 2 is Context Free Language in?

Context Free Language is a topic of Unit 8, Theory of Computation and Compilers, in Paper II (Computer Science and Applications, code 87).

Can I practise Context Free Language PYQs for free?

Yes. The 5 most recent published questions on this topic are free on this page with no signup, and each shows the published answer with its explanation. The full archive, practice tracking and analytics are part of UGC IQ.

Related topics in Unit 8

Full syllabus · Paper II overview