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

Match List I with List II. List I: A. Type-0 grammar, B. Type-1 grammar, C. Type-2 grammar, D. Type-3 grammar. List II: I. Linear grammar; II. GNF; III. x → y, |x| ≤ |y|, x, y ∈ (V ∪ T)*; IV. Recursively enumerable.

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

Show answer & explanation

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

Explanation

Type 0 generates recursively enumerable languages; Type 1 (context-sensitive) has non-contracting rules |x| ≤ |y|; Type 2 (context-free) can be put in Greibach Normal Form; Type 3 grammars are (right/left) linear.

More Theory of Computation and Compilers questions