Skip to content

UGC NET CS 2022Theory of Computation and Compilers › Context Free LanguageVerified

UGC NET CS 2022 PYQ: Consider the following statements about Context Free Language $\text{(CFL)}$ : Statement I : $\text{CFL}$ is…

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

Which of the following is correct?

  1. A
    Statement $\text{I}$ is true and Statement II is false
    Correct answer
  2. B
    Statement $\text{II}$ is true and Statement $\mathrm{I}$ is false
  3. C
    Both Statement $\text{I}$ and Statement $II$ are true
  4. D
    Neither Statement $\text{I}$ nor Statement $\text{II}$ is true

Answer

(A) Statement $\text{I}$ is true and Statement II is false

Approach

Recall the closure properties of context-free languages.

Reviewed by UGC IQ Editorial Team.