Computer Science EngineeringVery hard

The intersection of a regular language and a context-free language is always

  1. A. regular
  2. B. context-free
  3. C. only context-sensitive
  4. D. undecidable

Correct answer: B. context-free

A PDA can be run in product with a DFA, so the result is still context-free.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic