Skip to content

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

UGC NET CS 2020 PYQ: Which of the following are applications of symbol table? Storage allocation Checking type compatibility…

Which of the following are applications of symbol table?

  1. Storage allocation
  2. Checking type compatibility
  3. Suppressing duplicate error messages

Choose the correct answer from the options given below:

  1. A
    $\text{(i)}$ and $\text{(ii)}$ only
  2. B
    $\text{(i)}$ and $\text{(iii)}$ only
  3. C
    $\text{(ii)}$ and $\text{(iii)}$ only
  4. D
    $\text{(i)}$ $\text{(ii)}$ and $\text{(iii)}$
    Correct answer

Answer

(D) $\text{(i)}$ $\text{(ii)}$ and $\text{(iii)}$

Approach

Recall the standard functions of a compiler symbol table and check each listed application against them.

Reviewed by UGC IQ Editorial Team.