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 IList II
A. Type-0 GrammarI. Linear Grammar
B. Type-1 GrammarII. GNF
C. Type-2 GrammarIII. x → y, |x| ≤ |y|; x, y ∈ (V ∪ T)*
D. Type-3 GrammarIV. 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 grammars generate recursively enumerable languages (A-IV), and Type 1 (context-sensitive) grammars have rules x → y with |x| ≤ |y| (B-III). Only option D has both pairs. (It pairs Type 2 with 'linear grammar' and Type 3 with GNF.)

More Theory of Computation and Compilers questions