Compiler Design quiz: 60 questions

60 questions from the 15 lessons of Compiler Design. Each answer is explained, with a link back to the lesson it comes from, and your best score stays on this device.

Test yourself

60 questions from this course's lessons, in a random order. See what you remember, then go back to the lessons behind the questions you missed.

How many questions?

What the quiz covers

  1. How a compiler works (4 questions)
  2. Lexical analysis with regular expressions (4 questions)
  3. A hand-written lexer (4 questions)
  4. Recursive-descent parsing (4 questions)
  5. FIRST and FOLLOW sets (4 questions)
  6. LL(1) parsing with a table (4 questions)
  7. Bottom-up parsing: shift and reduce (4 questions)
  8. Abstract syntax trees (4 questions)
  9. Symbol tables and scopes (4 questions)
  10. Type checking (4 questions)
  11. Three-address code (4 questions)
  12. Optimizing intermediate code (4 questions)
  13. Basic blocks, control-flow graphs and liveness (4 questions)
  14. Generating code for a stack machine (4 questions)
  15. Register allocation (4 questions)