Skip to content

UGC NET CS 2019Theory of Computation and Compilers › Run Time SystemVerified

UGC NET CS 2019 PYQ: Which data structure is used by the compiler for managing variables and their attributes?

Which data structure is used by the compiler for managing variables and their attributes?

  1. A
    Binary tree
  2. B
    Link list
  3. C
    Symbol table
    Correct answer
  4. D
    Parse table

Answer

(C) Symbol table

Approach

Recall the compiler component that stores identifiers along with their type, scope and other attributes.

Reviewed by UGC IQ Editorial Team.