Question: What is the role of a symbol table in a compiler?
Options:
Correct Answer: To keep track of variable names and their attributes
Solution:
The symbol table is used to store information about variable names, types, scopes, and other attributes during the compilation process.