Seeking a brave soul to help me complete this study guide fo

Seeking a brave soul to help me complete this study guide for an upcoming exam I am trying to get ready for. Will up vote and rate as much help as possible is greatly appreciated. Thank you!

Solution

1. The lowest level language is \"machine code\" or \"machine language\", it is the only language the computer can understand directly. It consists of binary code, i.e. instructions in 1\'s and 0\'s. It is not humanly readable.

2. A high level language enables programmers to write code that can be understood by humans and it is generally independent of the architecture of the computer running the code.

Some examples: Java, python, C/C++

We prefer to use high level languages to write code because they are easy to understand (thus the code becomes easy to share and debug) and they allow us to separate the program logic from specific computer architecture.

To further highlight the need of high level languages, imagine we only had machine language to write code with. Then we will have to write programs with only using 1\'s and 0\'s. Such a program will be very long and very hard to write in the first place, and it will be very difficult to understand.

3. Program/code written in compiled languages are entirely converted into intermediate code. Compiler is the software responsible for this conversion.

Program/code written in interpreted languages are converted into machine code one statement at time and that statment is immediately executed before reading the next. Interpreter is the software for statement by statement conversion and execution.

Key differences:

4. Java is a compiled language. A program written in Java is first compiled into bytecode, then this bytecode is converted by JVM (Java Virtual Machine) into machine code understood by computer and then executed. JVM isolates computer hardware details from bytecode, thus making bytecode very portable.

Best of luck for the exams!!

Compiled languages Interpreted languages
The entire program is converted into intermediate code/machine code. One statement at a time is converted and executed.
Intermediate code is generated. No intermediate code is generated.
Compiler can detect syntax errors etc. in source code at the time of compilation, and if any error is found, no machine code is produced. The code is read and executed one statement at a time, if an error is found, error message is generated at execution time.
Seeking a brave soul to help me complete this study guide for an upcoming exam I am trying to get ready for. Will up vote and rate as much help as possible is g

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site