Computer Science EngineeringHard
Type checking of expressions is performed during which phase of a compiler?
- A. Lexical analysis
- B. Syntax analysis
- C. Semantic analysis
- D. Code generation
Correct answer: C. Semantic analysis
Semantic analysis verifies type compatibility and other context-sensitive rules.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- A string of length 5 is derived in a grammar in Chomsky normal form. How many derivation steps are required?
- Deterministic context-free languages are closed under
- Rice's theorem states that every non-trivial property of which of the following, for a Turing machine, is undecidable?
- For the grammar S -> AB, A -> a | epsilon, B -> b, what is FIRST(S)?
- How many LR(0) items does the production A -> XYZ generate?
- How many tokens are there in the C statement: int a = b + 2;