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?
- AStatement $\text{I}$ is true and Statement II is falseCorrect answer
- BStatement $\text{II}$ is true and Statement $\mathrm{I}$ is false
- CBoth Statement $\text{I}$ and Statement $II$ are true
- DNeither 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.