Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

Aptitude | GATE CS 1998 | Question 27

Improve Article
Save Article
Like Article
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

My Personal Notes arrow_drop_up
Last Updated : 01 Feb, 2019
Like Article
Save Article
Similar Reads