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?
- Storage allocation
- Checking type compatibility
- Suppressing duplicate error messages
Choose the correct answer from the options given below:
- A$\text{(i)}$ and $\text{(ii)}$ only
- B$\text{(i)}$ and $\text{(iii)}$ only
- C$\text{(ii)}$ and $\text{(iii)}$ only
- 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.