1. Explain the difference between a lexical error and a syntax error. Provide a valid example of each for C++.

2. What does it mean for a grammar to be ambiguous? Explain with examples.

3. Briefly explain what is Just-in-time compilation.

4. In the context of compiler design, what is bootstrapping? What are its advantages?

5. What is the fundamental difference between compilation and interpretation? Briefly explain the advantages of each. List the 3 phases of Front-End Analysis and the 3 phases of Back-End Synthesis.

6. With regard to heap allocation, explain the difference between internal and external fragmentation. Use diagrams if necessary.

7. What is short-circuit evaluation? Explain its usefulness with an example.

8. In terms of binding lifetimes and object lifetimes, what does it mean to have a dangling reference? What about a memory leak? Explain with examples.

9. What is binding and binding time? What are the different times when binding can occur?

10. What is the closest nested scope rule? What are static and dynamic scoping? Explain with examples.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.