Which of the following is NOT a regular language?

27 views
  • {a^n b^n | n >= 0}
  • {a^n b^n c^n | n >= 0} (Correct Answer)
  • {a^n | n is a prime number}
  • {a^n b^m c^p | n, m, p are prime numbers}

Explanation

Answer: b) {a^n b^n c^n | n >= 0}

Explanation: The language {a^n b^n c^n | n >= 0} is not a regular language because it violates the pumping lemma for regular languages. This language cannot be recognized by a finite automaton.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs