Open In App

GATE | GATE CS 2020 | Question 18

Like Article
Like
Save
Share
Report

Consider the following statements.

I. If L1∪L2 is regular, then both L1 and L2 must be regular.
II. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE ?
(A) â…  only
(B) â…¡ only
(C) Both â…  and â…¡
(D) Neither â…  nor â…¡


Answer: (D)

Explanation: Counter examples for given statements:

I. (anbn) ∪ (a*b*) = a*b*  

where, a*b* is regular but (anbn) is not regular language.

II. Φ ∪ (ab) ∪ (a2b2) ∪ (a3b3) ..... (infinite union) = (anbn)  

where, each language in left side are regular language, but language in right side (anbn) is not regular language.

So, both statements are false.

Option (D) is true.



Quiz of this Question


Last Updated : 01 Oct, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads