For any two languages and such that is context-free and is recursively enumerable but not recursive, which of the following is/are necessarily true?
- ( Complement of ) is recursive
- ( Complement of ) is recursive
- is context-free
- ∪ is recursively enumerable
View worked solution
Answer: D
We analyze each statement based on the closure properties of language families:
- Statement I: Every context-free language is also a recursive language. Since recursive languages are closed under complementation, if is context-free, then must be recursive. This statement is true.
- Statement II: If were recursive, then its complement would also be recursive. Since we are given that is not recursive, cannot be recursive. This statement is false.
- Statement III: Context-free languages are not closed under complementation. Thus, is not necessarily context-free. This statement is false.
- Statement IV: Since is context-free, is recursive, which implies is recursively enumerable (RE). Since is RE and RE languages are closed under union, must be recursively enumerable. This statement is true.
Hence, only statements I and IV are necessarily true.
Free practice · Your answers on this page are not saved.
