The programming languages are used to give instructions to the computer in a language which a computer can understand.
Computer languages are classified into three types as follows −
Computer is a machine. Since, its memory can store only 1’s and 0’s, instructions must be given to the computer in streams of 1’s and 0’s i.e. binary code.
These are easily understandable by the machine.
Programs written in binary code can be directly entered into computer for execution and it is known as machine language.
Advantages of machine language include −
It is also called as assembly language.
An assembly program contains "Mnemonics”.
"Mnemonic” means information which can be memorized easily in the form of abbreviations.
The advantages of symbolic languages include −
Assembly language is easy to read and write when compared to machine language.
Mnemonics are easy to remember.
The disadvantages include −
A language that is close to native language is called high level language.
It has control structures, I/O facilities.
For example, FORTRAN, COBOL, PASCAL, C, C++ etc.
The advantages of high level languages are as follows −
The disadvantages are as follows −
High level language programs requires a translator for conversion into machine language.
‘Compilers’ (or) ‘Interpreters’ are used for converting high level language into machine language.
Compiler converts entire instructions in the program at a time. Interpreter converts one statement at a time.