ISRO Scientist/Engineer CSE 2023Theory of Computation › Regular and Context-Free Languages
ISRO Scientist/Engineer CSE 2023 PYQ: Which f the following statements is FALSE?
Which f the following statements is FALSE?
- AThe intersection of a regular language and a context-free language is context=free
- BThe intersection of a regular language and context-free language is regularCorrect answer
- CThe union of two context-free languages is context-free
- DThe union of two regular languages is regular
Answer
(B) The intersection of a regular language and context-free language is regular
Approach
Recall the closure properties of regular and context-free languages (CFLs). A statement is FALSE if it contradicts a known closure property or can be disproved by a counterexample.
Reviewed by ISRO IQ Editorial Team.