Open In App
Related Articles

Aptitude | GATE CS 1998 | Question 27

Improve Article
Save Article
Like Article

Type checking is normally done during
(A) Lexical analysis
(B) Syntax analysis
(C) Syntax directed translation
(D) Code optimization

Answer: (C)

Explanation: Syntax-Directed Translation is used in following cases

  1. Conversion of infix to Postfix
  2. Calculation of infix expression
  3. For creating a Acyclic graph
  4. Type Checking
  5. Conversion of Binary number to Decimal
  6. Counting the numbers of bits (0 or 1 ) in a binary number
  7. Creation of syntax tree
  8. To generate Intermediate code
  9. Storing the data into Symbol table

Quiz of this Question

Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing Data Science & AI as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.

Last Updated : 01 Feb, 2019
Like Article
Save Article
Similar Reads