Preview

04 - Stages of compilation

 1. What is a compiler?

  A mythical creature

  A type of transformer

  A type of memory

  A program that transforms one computer language into another

 2. What is the first stage of compilation?

  Grammatical analysis

  Binary analysis

  Lexical analysis

  Spelling analysis

 3. High level languages have key words and symbols called a lexicon.

  FALSE

  TRUE

 4. The compiler looks for key words that cannot be broken down further. These are called …
stagesofcompilation_q4.jpg

  genes

  lexemes

  intervenes

  memes

 5. The compiler reads and translates comments.

  TRUE

  FALSE

 6. The compiler produces a token '___'

  list

  chart

  table

  schedule

 7. The second stage is called …

  synthesised analysis

  syntactic analysis

  simultaneous analysis

  synthetic analysis

 8. This second stage involves looking for errors that are noted in the compiler report.

  FALSE

  TRUE

 9. The third stage is called …

  code generation

  instruction authoring

  binary production

  primary execution

 10. In this third stage, each token is …
stagesofcompilation_q10.jpg

  converted into machine code

  converted into a high level language

  automatically corrected to remove errors

  reduced in size