a) (i) and (ii) only
b) (ii) and (iii) only
c) (i) and (iv) only
d) All are correct
I think the answer should be a
i had doubt on (ii), "the main purpose of semantic analyzer is to produce intermediate code", i used to think its used for type checking and ICG is used to produce intermediate code.
@ Hira Thakur answer should not be d, see point iii, it says ICG doesnot use symbol table which is wrong.
@stblue you are right about semantic analyser. It is used for type checking and thus form an annotated syntax tree which is further used for code generation
I had my reservations against statement iv as well because I think Intermediate and machine code generator can be same if code optimization is neglected (I think I remember reading this, plesae correct me if I'm wrong). That's why I opted for a