Contents    Next    Page+10   

What is the advantage of high-level languages?

  • A: machine independence
  • B: multiple instructions generated for a line of code
  • C: early detection of errors
  • D: could execute faster than assembler code
  • E: all of the above

    Answer: E

    All of these are important advantages of high-level languages. The answer D might be surprising, but in fact optimizing compilers can often beat expert human assembly language programmers, especially on scientific computations involving loops over large matrices.