Which of the following statements is/are
View worked solution
Answer: A;C;D
We analyze the closure properties of the given language families under intersection:
- Option A (Correct): Regular languages are closed under intersection. If and are regular, we can construct a product DFA to accept .
- Option B (Incorrect): Context-free languages (CFLs) are not closed under intersection. For example, and are both CFLs, but their intersection is not context-free.
- Option C (Correct): Recursive (decidable) languages are closed under intersection. Given deciders and for two recursive languages, we can construct a decider that runs on the input, and if it accepts, runs . halts and accepts if and only if both accept.
- Option D (Correct): Recursively enumerable (RE) languages are closed under intersection. Given Turing machines and for two RE languages, we can construct a TM that runs and in parallel (using interleaving/step-by-step simulation). If both halt and accept, accepts.
Free practice · Your answers on this page are not saved.
