Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the following statements.I. If L1&cu... Start Learning for Free
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)
    I only
  • b)
    II only
  • c)
    Both I and II
  • d)
    Neither I nor II
Correct answer is option 'D'. Can you explain this answer?
Most Upvoted Answer
Consider the following statements.I. If L1∪ L2is regular, then bot...
Statement I: FALSE
If L1 ∪ L2 is regular, then neither L1 nor L2 needs necessarily be regular.
Example:
Assume L1= {an bn, n ≥ 0} over the alphabet {a, b} and L2 be the complement of L1.
Neither Lnor L2 is regular (both are DCFL) but L1 ∪ L2= {an bn} ∪ {an bn}c = (a + b)is regular.
Statement II: FALSE. The infinite Union of regular languages is not regular.
Example:
Given alphabet {a, b}.
L1= {ε}
L2= {ab}
L3= {aabb}
L4= {aaabbb}
:
:
L = L1 ∪ L2 ∪ L∪ L4 …
Each of the above are regular but their infinite Union gives L1= {an bn, n ≥ 0} which is not regular but DCFL.
Note:
DCFL → Deterministic context free language
Free Test
Community Answer
Consider the following statements.I. If L1∪ L2is regular, then bot...
Is true, then L2 is true.
II. If L2 is true, then L3 is true.
III. If L3 is true, then L4 is true.
IV. If L4 is true, then L5 is true.

Which of the following conclusions can be drawn from the above statements?

A. If L5 is true, then L4 is true.
B. If L4 is true, then L3 is true.
C. If L3 is true, then L2 is true.
D. If L2 is true, then L1 is true.
E. If L1 is true, then L5 is true.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer?
Question Description
Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer?.
Solutions for Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the following statements.I. If L1∪ L2is regular, then both L1and L2must be regular.II. The class of regular languages is closed under infinite union.Which of the above statements is/are TRUE?a)I onlyb)II onlyc)Both I and IId)Neither I nor IICorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev