1.

Which of the following is regular?(a) a^100b^100(b) (a+b)*-{a^100b^100}(c) Both (a) and (b)(d) None of the mentionedI got this question in an interview for internship.My query is from Intersection with Regular Languages in section Properties of Context Free Languages of Automata Theory

Answer»

The correct choice is (C) Both (a) and (b)

To elaborate: As the language seems to be finite, a dfa can be constructed for the same, THUS is REGULAR.



Discussion

No Comment Found

Related InterviewSolutions