Open In App

Aptitude | GATE CS 1998 | Question 27

Like Article
Like
Save Article
Save
Share
Report issue
Report

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


Last Updated : 01 Feb, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads