Correct option is B
Given:
· is a Regular Language (RL)
· is a Context-Free Language (CFL)
We need to determine which statement is always true.
A fundamental closure property of context-free languages is:
Since is regular and is context-free,
is guaranteed to be a context-free language. This can be established by constructing a product of:
· a finite automaton recognizing and
· a pushdown automaton (PDA) recognizing
The resulting PDA keeps track of both the finite-state information of and the stack information of Hence, it recognizes
Why the Other Options Are Incorrect?
(a) Any subset of is context-free — Incorrect
Although the union is context-free because CFLs are closed under union, not every subset of a CFL is necessarily context-free. For example, a CFL can contain a non-context-free language as a subset.
(c) is a regular language — Incorrect
The intersection of a regular language with a CFL is guaranteed to be context-free, but it need not be regular. For example, let:
which is regular, and which is context-free but not regular. Then:
which is not regular.
(d) is accepted by a deterministic PDA — Incorrect
A context-free language is generally accepted by a non-deterministic PDA (NPDA). Not every CFL is deterministic context-free. Therefore, we cannot guarantee that is accepted by a DPDA.
Information Booster
1. Regular languages are closed under: union, intersection, complement, difference, concatenation, Kleene star, etc.
2. Context-free languages are closed under: union, concatenation, Kleene star, and intersection with a regular language.
3. CFLs are not closed under intersection with another CFL.
4. CFLs are not closed under complement.
5. Every regular language is a CFL, but every CFL is not necessarily regular.
Additional Knowledge
but generally:
and:
Thus, the guaranteed statement is:
