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. Conflict ResolutionI. Three-Address Code
B. Common SubexpressionII. Precedence
C. QuadruplesIII. Syntax Directed Translations
D. L-Attributed definitionsIV. Directed Acyclic Graph (DAG)

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

Parser conflicts (e.g. in yacc) are resolved using precedence and associativity (A-II). Common subexpressions are detected using a DAG (B-IV). Quadruples are a representation of three-address code (C-I). L-attributed definitions are a class of syntax-directed translations (D-III).

More Theory of Computation and Compilers questions