All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2020

Which of the following statements is true?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. The union of two context free languages is context free.

Explanation

CFLs are closed under union but not intersection or complement, and some CFLs (palindromes) need a nondeterministic PDA.

More Theory of Computation and Compilers questions