Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Compiler Design Syntax Analysis Syntax Analyzer
Match the description of several parts of a classic optimizing compiler in List - I, with the names of those parts in List - II:
|
List - I |
List - II |
|
A. A part of a compiler that is responsible for recognizing |
1. Optimizer syntax |
|
B. A part of a compiler that takes as input a stream of characters and produces as output a stream of words along with their associated syntactic categories. |
2. Semantic Analysis |
|
C. A part of a compiler that understands the meanings of variable names and other symbols and checks that they are used in ways consistent with their definitions. |
3. Parser |
|
D. An IR-to-IR transformer that tries to improve the IR program in some way (Intermediate Representation). |
4. Scanner |
1
A - 3, B - 4, C - 2, D - 1
2
A - 4, B - 3, C - 2, D - 1
3
A - 2, B - 4, C - 1, D - 3
4
A - 2, B - 4, C - 3, D - 1