Introduction to Programming Language

Need of programming Language:

Generally, we are communicates with each other using languages like Matrathi, Hindi, English etc. Similarly, communication between user and computer we need a Programming language.

Types of programming Language:

Machine Language or Low-Level Language

Machine language or low– level languageunderstood by computer.This language consisted of series of 0’s and 1’s i.e. binary.

Advantages

·         A computer can understand this language.

·         Execution of programs in this language is fast.

Disadvantages

·         Machine-dependent language.

·         It is difficult to write, understood and find error of program In low-level language.

Assembly Language

Assembly language has predefined words called mnemonics. In Machine language binary code instructions are replaced with mnemonics and operands. But the computer cannot understand mnemonics, so we use a translator called Assembler to translate mnemonics into binary language. Assembly language is an example of middle-level language.

Advantages

·         Writing a program in Assembly language is easier than Machine language.

·         Assembly language program is easy to understand, find errors and modify.

 

Disadvantages

·         Assembly language instruction syntax is different for different machine architecture, it  means that  Assembly language is machine-dependent.

·         Assembly language needs to be translated into Machine language.

·         Assembly language is slower execution than the Machine language.

High-Level Language

A high-level language is a computer language which can be understood by the Human. The high-level language is very similar to human languages. High-level language has a set of predefined words known as Keywords and a set of rules known as Syntax to create instructions. The high-level language couldn’t understood by computer so it needs to be converted into the low-level language to make it understandable by the computer. Compiler or interpreter to convert high-level language to machine language.

Advantages

·         Easier to writing programs in a high-level language.

·         The programs created using high-level language runs on different machines.

·      Program in High level language is easy to understand, and easy to find errors and modify.

Disadvantages

·         High-level language needs to be translated into low-level language to run program on computer.

·        High-level language programs executes slower compared to Assembly language and low-level languages.

Procedural Language

In procedural languages, the program code is written as per thinking “what to do” and also “how to do” (step by step procedure). It contains a systematic order of statements, functions and commands to complete a computational task or program. Program these instructions are written to solve specific problems.

Examples of Procedural languages:

·         C , C++ , Java etc….

Post a Comment

0 Comments