The GATE Grind

GATE 2016 CS (CS2) – Question 52

Theory of Computation · Regular Expressions and Finite Automata · 2 marks · Multiple choice

I: If every NFA state is accepting, the accepted language is Σ*. II: There exists a regular language A such that A∩B is regular for every language B. Which is true?

  1. Only I
  2. Only II
  3. Both
  4. Neither

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) Only II

Explanation

I fails because an NFA may have missing transitions: a symbol with no surviving run is rejected even when all states are accepting. II holds with A=∅, whose intersection with every B is the regular empty language. Thus only II is true, B.

More Regular Expressions and Finite Automata questions

All Regular Expressions and Finite Automata questions →