Programming Languages - Review for Test

  1. Explain the difference between machine language and a high level language.
  2. Explain the difference between assembly language and machine language.
  3. If a CPU (microprocessor) can only execute machine code, outline the process
    that enables a Java program to be executed by the CPU.
  4. Explain the brilliant idea that John von Neumann suggested that is still
    used in virtually every modern computer.
  5. Approximately when were each of these invented:
    (a) the first electronic computer
    (b) the fist compiler
    (c) the first microprocessor
    (d) the first personal computer
  6. Structured High Level Languages are belong to the 3rd generation of
    programming languages.  Outline what we should expect from the 4th generation.
  7. List the following in order from oldest to newest:
          Java         Basic      C++      Fortran
  8. Outline two advantages of Object Oriented Program over structured programming.
  9. Explain 3 differences between a compiler and interpreter.
  10. Outline the difference between syntax and semantics, including specific examples.
  11. Explain why the Java Virtual Machine is essential for ensuring portability
    of Java programs.
  12. Explain the difference between a keyword and a variable identifier.
 13.  State the output of the following code fragment:
 14.  Rewrite this method so that it would respond correctly
to the command: "add 12 and 20"

15.  Explain why it makes sense to use an interpreter for JavaScript rather than a compiler.