What are the differences between compiled and interpreted languages? Give three examples of each.

What will be an ideal response?


In an effort to bring programming languages closer to the English language—and make programming and debugging task easier—high-level languages (HLLs) were developed. Commonly used high-level languages are Ada, C, C++, Java, Javascript, BASIC, FORTRAN, LISP, Pascal, and Prolog. Some of these languages are interpreted, whereas others are compiled. On the one hand, programs written in an interpreted language are executed one instruction at a time by a program called an interpreter, without translating them into the machine code for the CPU used in the computer. Examples of interpreted languages are BASIC, LISP, Javascript, and ML. On the other hand, programs written in compiled languages must be translated into the machine code for the underlying CPU before they are executed. This translation is carried out by a program called a compiler, which generates the assembly version of the high-level language program. The assembly version has to go through further translation before the executable code is generated. Examples of compiled languges are C, C++, FORTRAN, Java, and Ada. The compiled languages run many times faster than the interpreted languages because compiled languages are directly executed by the CPU, whereas the interpreted languages are executed by a piece of software (an interpreter).
However, the Java language is not compiled in the traditional sense. Java programs are translated into a form known as the Java Bytecode, which is then interpreted by an interpreter, called the Java Virtual Machine (JVM). You can also compile Java programs with a just-in-time (JIT) compiler to run directly on a native processor.

Computer Science & Information Technology

You might also like to view...

Most statements end with a(n)_______________ .

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What happens when you click the double arrows above the Tools panel?

A. Both sets of tools are displayed B. The Tools window opens or closes C. Tools are displayed in one or two rows D. The secondary tools menu is displayed

Computer Science & Information Technology

A site created with a(n) ____________________ comes with a sample structure, which might not reflect the pages required for your planned site.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Pages that take longer than 30 seconds to download at a connection speed of 56.6 Kbps are reported as ____.

A. Older files B. Unlinked files C. Broken hyperlinks D. Slow pages

Computer Science & Information Technology