Let and be two languages over a finite alphabet, such that and are regular languages.
Which of the following statements is/are always true?
View worked solution
Answer: C
We are given that is a regular language and is a regular language over a finite alphabet.
1. Analyzing Option C
- Since is a regular language, its complement is also a regular language (as regular languages are closed under complementation).
- Every regular language is also a context-free language (since the class of regular languages is a proper subset of context-free languages).
- Therefore, is always context-free. This statement is always true.
2. Counterexample for Options A, B, and D
To show that options A, B, and D are not always true, let us construct a counterexample:
- Let , which is a well-known non-context-free (and hence non-regular) language.
- Let , which is a regular language.
Now, let's verify the given conditions:
- is regular. (Satisfied)
- , which is regular. (Satisfied)
Under these valid conditions, let's evaluate the remaining options:
- Option A: is regular False, since is not regular.
- Option B: is regular False.
- Option D: is context-free False, since is not context-free.
Thus, only option C is always true.
Free practice · Your answers on this page are not saved.
