Q80.Marks: +2.0UGC NET Paper 2: Computer Science 2020
Which of the following are applications of symbol table ?
(A) Storage allocation
(B) Checking type compatability
(C) Suppressing duplicate error messages
Choose the correct answer from the options given below:
1.(A) and (B) only
2.(A) and (C) only
3.(B) and (C) only
4.(A), (B) and (C)✓ Correct
Solution
The correct answer is option 4.
Key Points
Symbol table can be used for
Storage allocation
Checking type compatibility
Suppressing duplicate error messages
∴ Hence the correct answer is(A), (B) and (C).
Additional Information
The symbol table is a data structure that contains a record for each identifier along with its attribute such as type, initial value, scope, a lifetime.