Possible Questions Chapter - 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Possible Questions Chapter -1

1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. What is a compiler? What is the difference between a compiler and interpreter? What is the environment in which a compiler runs? What are the phases in a typical compiler? Which model is used in compiler design? How the phases fit into this model? What is M *N vs M+N problem in CD? How is a compiler specified? What is bootstrapping in compiler design? What is static and dynamic policy in compiler design? What is static and dynamic scope in compiler design? Give examples. What are the parameter passing mechanisms used in programming languages? What is in aliasing in programming languages? What is type coercion in PLS? Why do we study compiler design techniques? What are the application areas of compiler design techniques? What is environment and state in PLS? What is the difference between identifiers and variables? Explain with example All identifiers are names but all names are not identifiers. What are the various errors encountered during compilation and in which phase they are detected? What is a symbol table? Why is it required? Trace the details of each phase of compiler for the following code:

X := a * b + 2 * 3.14 * r 18. 19. 20. 21. Can we group some phases of a compiler to a pass? Explain it. Describe how an assembler works? Classify the various programming languages. What is printed by following code #define a (x+1) int x=2; void b(){ x=a; printf(%d,x);} void c(){ x=1; printf(%d,a);} void main(){b();c();}

You might also like