Compiler Questions

  1. Describe one function of a compiler.
  2. State when you would use an interpreter and explain why.
  3. Explain the term syntax in relation to a language translator.
  4. Explain why the use of a complier rather than an interpreter can reduce the number and severity of run-time errors.
  5. A software system can be supplied to a customer with either the source code or the executable (object) code.
    (a) Outline the difference between the two kinds of code.
    (b) State one advantage and one disadvantage to the customer of only having the executable (object) code.
    (c) Discuss the role of an editor and a debugging tool in the translation from the source code to the executable code.
    (d) Describe one situation in which a source code is generated by software, rather than being written directly by a programmer.