Consider the following languages.
Which one of the following statements is FALSE?
View worked solution
Answer: D
To find the FALSE statement, let us analyze the properties of the languages and :
1. Analysis of :
- There are no constraints or dependencies between the powers , , and .
- Thus, can be represented by the regular expression .
- Since is a regular language, its complement must also be regular (as regular languages are closed under complementation).
- Therefore, the statement "Complement of is context-free but not regular" is FALSE.
2. Verification of other options:
- Option A: requires comparing the count of s before and after the s. This single comparison ( or ) can be easily performed using a Pushdown Automaton (PDA). Thus, is a context-free language (CFL). This statement is TRUE.
- Option B: Since , we have . Since is a CFL, their intersection is also a CFL. (Alternatively, the intersection of a regular language and a CFL is always a CFL). This statement is TRUE.
- Option C: Every context-free language is recursive. Since is a CFL, it is recursive. Since recursive languages are closed under complementation, the complement of is also recursive. This statement is TRUE.
Free practice · Your answers on this page are not saved.
