Preview

03 - Assembler, Compiler, Interpreter

 1. What is used to translate assembly code?

  Assembler

  None of these apply

  Interpreter

  Compiler

 2. _____________ converts high level source code into machine code and stores it in an executable file.

  None of these apply

  A compiler

  An assembler

  An interpreter

 3. __________ converts a single line of high level source code into machine code and then immediately runs it on the CPU.

  An assembler

  None of these apply

  An interpreter

  A compiler

 4. Which of the following is not used to translate high level languages.

  Interpreter

  Assembler

  Compiler

  None of these apply

 5. Which translator translates the source code in one go?

  Assembler

  Compiler

  Interpreter

  None of these apply

 6. Which translator stops (line by line) when it encounters an error?

  Compiler

  None of these apply

  Interpreter

  Assembler

 7. Which language translator is used at the end of development?

  None of these apply

  Compiler

  Interpreter

  Assembler

 8. Which translator is typically used during the development of a program to aid the programmer?

  None of these apply

  Compiler

  Assembler

  Interpreter

 9. Which language translator produces object code and an error report?

  Interpreter

  None of these apply

  Assembler

  Compiler

 10. What is meant by 'source code'?

  The code written by the programmer

  None of these apply

  The machine code (at the source) i.e the 1s and 0s

  The mystery source of the code (e.g. binary)

 11. Because of the source code > translate > run loop, an interpreter tends to be a lot ______________ compared to compiled code.

  wobblier

  softer

  slower

  faster

 12. The advantage of an interpreter is that it is excellent for developing and testing code as errors show up immediately.

  True

  False

 13. A disadvantage of an interpreter is that it always must be present to run the source code and the source code must also be available.

  True

  False

 14. Often a compiler will also check for syntax errors and notify the user if it finds any, line by line.

  False

  True

 15. A software that combines object files (when a large program is broken down into smaller modules) is called a ...

  booter

  loader

  combiner

  linker