| List-I | List-II | ||
| A. | Lexical analysis | 1. | Graph coloring |
| B. | Parsing | 2. | DFA minimization |
| C. | Register allocation | 3. | Post-order traversal |
| D. | Expression evaluation | 4. | Production tree |
| A | B | C | D | |
| (a) | 2 | 3 | 1 | 4 |
| (b) | 2 | 1 | 4 | 3 |
| (c) | 2 | 4 | 1 | 3 |
| (d) | 2 | 3 | 4 | 1 |
Equal precedence and left associativity; expression is evaluated to 7
Equal precedence and right associativity; expression is evaluated to 9
Precedence of 'x' is higher than that of '+', and both operators are left associative; expression is evaluated to 7
Precedence of '+' is higher than that of 'x', and both operators are left associative; expression is evaluated to 9