Assignment - 9 - Compiler Design
Assignment - 9 - Compiler Design
Compiler Design
Assignment- Week 9
TYPE OF QUESTION:MCQ
Number ofquestions:10 Total mark: 10 X 1 = 10
1. Self-organizing list based symbol tables may show better performance due to
a) Insert
b) Delete
c) Modify
d) Lookup
Ans: d)
a) Ease of implementation
b) Program locality
c) Insertion of symbols
d) None of the other options
Ans: b)
a) Linear table
b) Tree
c) Hash table
d) Circular list
Ans: c)
a) Parameters
b) Local variables
c) Parameters and local variables
d) Parameters , local variables and code for procedures
Ans: c)
6. Which of the following phases of compiler does NOT use symbol table?
a) Semantic analysis
b) Code generation
c) Code optimization
d) None of the given options
And: d)
a) Name equivalent
b) Structurally equivalent
c) Both name and structurally equivalent
d) May not be name equivalent
Ans: c)
a) Single-pass compilers
b) Multi-pass compilers
c) Both single and multi-pass compilers
d) None of the given options
Ans: a)
Ans: c)
(A) Name
(B) Location
(C) Scope
(D) None of the other options
Ans: d)
END of Assignment