Matching: GATE CS Previous Year Questions

Matching · Compiler Design

4 questions · asked in 4 of 27 years (2000–2026)

MCQ 41-mark 4

2000Questions per year2026

Questions 1–4 of 4

Q1GATE 2024 (Session 2)1 markMCQ−0.33 if wrong
Consider the following two sets:
Set XSet YP. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator 3. Parse TreeS. Code Optimizer4. Constant Folding \begin{array}{ll} \textbf{Set X} & \textbf{Set Y} \\ \text{P. Lexical Analyzer} & \text{1. Abstract Syntax Tree} \\ \text{Q. Syntax Analyzer} & \text{2. Token}\\ \text{R. Intermediate Code Generator } & \text{3. Parse Tree} \\ \text{S. Code Optimizer} & \text{4. Constant Folding } \end{array}
Which one of the following options is the CORRECT match from Set X to Set Y ?

Q2GATE 2017 (Session 2)1 markMCQ−0.33 if wrong
Match the following according to input (from the left column) to the complier phase (in the right column) that processes it.
Column-1 Column-2 P.Syntax treei.Code generator Q.Character streamii.Syntax analyzer R.Intermediate representationiii.Semantic analyzer S.Token streamiv.Lexical analyzer

Q3GATE 2015 (Session 2)1 markMCQ−0.33 if wrong
Match the following:
P. Lexical analysis1. Graph coloring Q. Parsing2. DFA minimization R. Register allocation3. Post-order traversal S. Expression evaluation4. Production tree

Q4GATE 20091 markMCQ−0.33 if wrong
Match all items in Group 1 with correct options from those given in Group 2.
Group 1 Group 2 P.Regular expression1.Syntax analysis Q.Pushdown automata2.Code generation R.Dataflow analysis3.Lexical analysis S.Register allocation4.Code optimization

Keep practising

Topics in Compiler Design

All CS topics ›