edited by
2,047 views
0 votes
0 votes
Which of the following is true?

A)  Symbol table is constructed during the analysis part of compiler i.e., (front end

B)  Type checking is done during syntax analysis phase.

C)  SDD with only synthesised attribute, always have a order of evaluation.

D)   Both (a) and (c)
edited by

1 Answer

Best answer
2 votes
2 votes

A) Symbol table is constructed in the lexical analysis phase which is in end so A is true

    The front end includes all analysis phases end the intermediate code generator.

    The back end includes the code optimization phase and final code generation phase.

B) Type checking is done during semantic analysis phase and syntax analysis is used to generate parse trees.                                    eg int a = "world" . Hence false

C) Yes we can use post order traversal for evaluation when there are only synthesized attributes.

http://www.cse.iitm.ac.in/~rupesh/teaching/compiler/aug15/schedule/4-sdt.pdf

Hence A and C are true.

Therefore, D is the answer.

selected by

Related questions

0 votes
0 votes
1 answer
2
stblue asked Aug 26, 2017
879 views
a) (i) and (ii) onlyb) (ii) and (iii) onlyc) (i) and (iv) onlyd) All are correct
2 votes
2 votes
1 answer
3
Bikram asked Nov 25, 2016
248 views
In compilers, the type checking is done in:Lexical AnalysisSemantic AnalysisCode Generation PhaseParsing Phase
0 votes
0 votes
1 answer
4
goluabhinan asked Sep 16, 2018
1,537 views
Any transcription error can be repaired by(a) insertion alone (b) deletion alone(c) insertion and deletion alone (d) replacement alone