Skip to content
Related Articles

Related Articles

Improve Article
Aptitude | GATE CS 1998 | Question 27
  • Difficulty Level : Medium
  • Last Updated : 01 Feb, 2019

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

Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :