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 2)

Match the following based on the language accepted by using brute force method of parsing.

Figure

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

Show answer & explanation

Correct answer: B. a-II, b-IV, c-I, d-III

Explanation

Each grammar generates strings of a's whose lengths grow in fixed steps, and the counts listed relate to the number of sentential forms a brute-force (exhaustive) parser may try. The matching follows the official key.

More Theory of Computation and Compilers questions