Computer Sciences > Gate 2016 Set-2 > Languages
Consider the following types of languages:

L1 Regular,
L2: Context-free,
L3: Recursive,
L4: Recursively enumerable.

Which of the following is/are TRUE?

I. L3' U L4 is recursively enumerable
II. L2 U L3 is recursive
III. L1* U L2 is context-free
IV. L1 U L2' is context-free
A
I only
B
I and III only
C
I and IV only
D
I, II and III only

Correct : L

Given:
L1 is a Regular language.
L2 is a Context-free language.
L3 is a Recursive language.
L4 is a Recursively enumerable language.
To find:
Which of the given statements (I, II, III, IV) is/are TRUE.
Solution:
Let me check statement I: L3' ∪ L4 is recursively enumerable.
L3 is recursive, and recursive languages are closed under complementation.
So, L3' is also recursive.
Every recursive language is also recursively enumerable, so L3' is recursively enumerable.
Since recursively enumerable languages are closed under union, L3' ∪ L4 must be recursively enumerable.
So, statement I is TRUE.
Now let me check statement II: L2 ∪ L3 is recursive.
L2 is context-free, and every context-free language is recursive.
L3 is already given as recursive.
Since recursive languages are closed under union, the union of two recursive languages is recursive.
So, statement II is TRUE.
Next, let me check statement III: L1* ∪ L2 is context-free.
L1 is regular, and regular languages are closed under Kleene star.
So, L1* is regular.
Every regular language is context-free, which means L1* is also context-free.
Since context-free languages are closed under union, L1* ∪ L2 is context-free.
So, statement III is TRUE.
Now let me check statement IV: L1 ∪ L2' is context-free.
Context-free languages are not closed under complementation, so L2' need not be context-free.
Therefore, L1 ∪ L2' is not necessarily context-free.
So, statement IV is FALSE.
Thus, statements I, II, and III are TRUE.
Answer:
(D) I, II and III only

Similar Questions

A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ
Choose the word that is opposite in meaning to the word “coherent”.
#5 MCQ

Related Topics

computer science gate 2016 regular languages context free languages recursive languages recursively enumerable L3 U L4 RE L2 U L3 recursive L1* U L2 CFG L1 U L2' CFG GATE computer science 2016 language theory gate

Unique Visitor Count

Total Unique Visitors

Loading......