Question:

Match the following:

 

Show Hint

Lexical analysis, syntax analysis, and code generation are fundamental phases in a compiler, and understanding their connections helps in solving matching questions like this one.
Updated On: May 4, 2025
  • a - ii, b - iii, c - iv, d - i
  • a - ii, b - i, c - iv, d - iii
  • a - ii, b - iv, c - iii, d - i
  • a - ii, b - iii, c - i, d - iv
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

- Lexical Analysis corresponds to Scanner (ii) as it scans the source code for tokens.
- Syntax Analysis corresponds to Parser (iii) as it parses the tokens into a syntax tree.
- Generate code for multiple machines corresponds to Cross Compiler (iv), which generates code for different machine architectures.
- Bottom-up parsing corresponds to Shift-reduce (i) as a type of parsing in bottom-up methods.
Therefore, the correct answer is 1. a – ii, b – iii, c – iv, d – i.
Was this answer helpful?
0
0