Which data structure in a compiler is used for managing information about variables and their attributes?
(A) Abstract syntax tree
(B) Symbol table
(C) Semantic stack
(D) Parse Table
Answer: (B)
Explanation: Symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program’s source code is associated with information relating to its declaration or appearance in the source, such as its type, scope level and sometimes its location (Source: http://en.wikipedia.org/wiki/Symbol_table)
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2010 | Question 1
- GATE | GATE CS 2010 | Question 2
- GATE | GATE CS 2010 | Question 3
- GATE | GATE CS 2010 | Question 4
- GATE | GATE CS 2010 | Question 5
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 8
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 10
- GATE | GATE CS 2010 | Question 11
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 14
- GATE | GATE CS 2010 | Question 15
- GATE | GATE CS 2010 | Question 16
- GATE | GATE CS 2010 | Question 65
- GATE | GATE CS 2010 | Question 18
- GATE | GATE CS 2010 | Question 19
- GATE | GATE CS 2010 | Question 20
- GATE | GATE CS 2010 | Question 21
- GATE | GATE CS 2010 | Question 22

