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

Consider the following statements:
A. For every regular language, we can design a Turing machine.
B. For every context-free language, we can design a Turing machine.
Which of the following is correct?

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

Show answer & explanation

Correct answer: D. Statement A and Statement B are both true.

Explanation

Regular ⊂ CFL ⊂ recursive, and a TM can simulate any FA or PDA.

More Theory of Computation and Compilers questions