All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · June 2024 (Cancelled)

For the regular languages and context-free languages which is not correct?

A. both are closed under union operation

B. both are closed under concatenation operation

C. both are closed under intersection operation

D. both are closed under complementation operation

E. both are closed under kleen star operation

Choose the most appropriate answer from the options given below :

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

Show answer & explanation

Correct answer: C. C and D Only

Explanation

Both classes are closed under union, concatenation and Kleene star. Regular languages are also closed under intersection and complement, but CFLs are not — so statements C and D are not correct for both.

More Theory of Computation and Compilers questions