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)

Match List I with List II. List I: A. A → aB | a (a ∈ T; A, B ∈ V), B. A → BC | a (a ∈ T; A, B, C ∈ V), C. LL(1) grammar, D. Halting problem. List II: I. Recursive descent parser, II. Turing machine, III. Chomsky Normal Form, IV. Finite automata.

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

Show answer & explanation

Correct answer: A. A-IV, B-III, C-I, D-II

Explanation

A → aB | a is a right-linear (regular) grammar, equivalent to a finite automaton. A → BC | a is Chomsky Normal Form. LL(1) grammars are parsed by (predictive) recursive descent. The halting problem concerns Turing machines.

More Theory of Computation and Compilers questions