Machine-translated by Google. Questions are authored in English.
Top

Discussion

Type checking is performed during

  • A.semantic analysis
  • B.lexical analysis when the identifiers are first recognised
  • C.syntax analysis while the parse tree is being constructed
  • D.code generation once the target machine has been selected

Answer: A

Semantic analysis uses the syntax tree and the symbol table to check that the program is meaningful. Type checking, verifying that operands suit their operator, is its principal duty, along with inserting any required coercions.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.