Assignment - 1 - Compiler Design
Assignment - 1 - Compiler Design
Institute of Technology Kharagpur
Compiler Design
Assignment ‐ Week 1
TYPE OF QUESTION:MCQ
Number ofquestions:12 Total mark: 12 X 1 = 12
Q1.
Which phase of compiler does NOT use symbol table?
a) Code generation
b) Syntax Analysis
c) Lexical Analysis
d) None of the other options
ANS : d) None of the other options
Q2.
Which phase of compiler is Syntax Analysis?
a) First
b) Second
c) Third
Q3.
Output of the syntax analysis is called
a) Parse tree
b) Keyword tree
c) Binary tree
d) All of the other options
b) Syntax Analysis
c) Semantic Analysis
Q5.
ANS: c) The Symbol table does not ever perform the processing of the assembler derivative.
Q6.
a) Logical error
b) Syntax error
Q9.
For maximum speed of execution of target code , temporary variables be best allocated to
a) Swap space
b) Main memory
c) CPU registers
Q11.
a) Program Analysis
b) Code optimization
c) Retargeting code
d) Code check
Q12.
a) Myfile.e
b) Myfile.yy.c
c) Myfile.lex
d) Myfile.obj
Answer: b
Explanation: This Produce the file “myfile.yy.c” which we can then compile with g++.
END of Assignment