Computer Science EngineeringHard

Type checking of expressions is performed during which phase of a compiler?

  1. A. Lexical analysis
  2. B. Syntax analysis
  3. C. Semantic analysis
  4. D. Code generation

Correct answer: C. Semantic analysis

Semantic analysis verifies type compatibility and other context-sensitive rules.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic