Preview

04 - Stages of compilation

 1. What is a compiler?

  A type of memory

  A type of transformer

  A program that transforms one computer language into another

  A mythical creature

 2. What is the first stage of compilation?

  Lexical analysis

  Binary analysis

  Spelling analysis

  Grammatical analysis

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

  TRUE

  FALSE

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

  intervenes

  lexemes

  genes

  memes

 5. The compiler reads and translates comments.

  FALSE

  TRUE

 6. The compiler produces a token '___'

  chart

  schedule

  list

  table

 7. The second stage is called …

  synthesised analysis

  simultaneous analysis

  syntactic 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 …

  primary execution

  instruction authoring

  binary production

  code generation

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

  automatically corrected to remove errors

  converted into a high level language

  converted into machine code

  reduced in size