Skip to main content

Computer programming language

 COMPUTER PROGRAMMING LANGUAGES

Generally, a language is considered as the medium of communication among people. Likewise, to communicate with computer systems, we use computer programming languages. Usually, we provide a particular set of instructions to the computer to perform a specific task. The set of instructions given to a computer is known as a Program languages. For example, BASIC, C, C++, Java.

Such programs are written in languages close to the human languages and are called high level COBOL, Fortran, etc. Each language has its own set of keywords and special syntax for writing the program. But computer cannot understand such languages. Computer understands only binary language that consists of binary numbers that is 0 and 1. So high level programs are converted into low level language program or machine language program using translators. In this chapter, let us study different generations of computer languages.



First Generation language-Machine Language

Machine Language is the first generation Language to communicate with a computer to binary digits 0 and 1. Thus, it is also known as binary language The machine language is easy to understand and can perform various operations Being an electronic machine, a computer system recognizes electric signals Among 0 and 1,0 stands for turning off the electric pulse and 1 stands for  turning on the electric pulse Computer easily understands the machine language which also Increases the processing speed of the computer.

Some disadvantages of machine language include:

You need to remember the operation codes and memory address whenever you write a program It is really difficult to find enters in a written program It is a machine dependent language it can only be used for a single type of computer.

Second Generation Language Assembly Language

The second generation computers use assembly language: This programming language is little advanced than machine language. However it is almost similar in structure and set of commands as that of machine language Instead of symbols, assembly language uses short mnemonic codes for instructions. Like ADD for Addition, SUB for Subtraction and MULT for Multiplication, etc. Using this language, a programmer may introduce names for blocks of memory that hold data.

As you know that computer understands machine language only, the assembly level language needs to be converted into machine language. Computers use assemblers for this purpose. Assemblers are translator programs that convert assembly language to machine language.

The program written in assembly language is called source program while the program that is converted into machine language is called object code or object program.

One disadvantage of this language is that, it is written for only one type of CPU.


Third Generation Language-High Level Language

Languages like C, Pascal, FORTRAN, etc. are called high level languages. They are considered as third generation languages. These languages are not machine dependent. High level languages are highly preferred languages for programming. Third generation language enables the programmer to easily read, write and maintain programs. The language is similar to English language. So, computers require translators to convert the high level language into machine language. The translator can be an interpreter or a compiler.

Interpreter converts the high level language program to a machine language via line by line execution of instructions. While, a compiler is also a translator program, that executes the whole program at once. A compiler is much faster than an interpreter.

Fourth Generation Language (4GL)

The fourth generation language is much closer to human language than other high level languages. These languages are combination of languages.

Important features of 4GLs are:

1. User-friendly and works in any operating system.

2. Primarily designed to reduce the programming effort.

3. Higher rate of execution.

4. Easy access to information for user.

5. It requires the user to specify the desired output, the computer itself will determine the sequence of instructions to be followed to achieve the result.

Popular posts from this blog

What are life process?

WHAT ARE LIFE PROCESSES? The maintenance functions of living organisms must go on even when they are not doing anything particular. Even when we are just sitting in class even if we are just asleep, this maintenance job has to go on The processes which together perform this maintenance job an We processes . Since these maintenance processes are needed to prevent damage and break-down energy is needed for them. This energy comes from outside the body of the mdhadual organism. So there must be a process to transfer a source of energy from outside the body of the organism which we call food, to the inside, a process we commonly call nutrition If the body size of the organisins is to grow, additional raw material wit also be needed from outside. Since life on earth depends on carbon- based molecules most of these food sources are also carbon-based Depending on the complexity of these carbon sources, different organisms can then use different kinds of nutritional processes The outside sourc...

Nutrition in human being?

 Nutrition in Human Beings The alimentary canal is basically a long tube extending from the mouth to the anus. we can see that the tube has different parts. Various regions are specialised to perform different functions. What happens to the food once it enters our body? We shall discuss this process here. We eat various types of food which has to pass through the same digestive tract, Naturally the food has to be processed to generate particles which are small and of the same texture. This is achieved by crushing the food with our teeth, Since the lining of the canal is soft, the food is also wetted to make its passage smooth. When we eat something we like, our mouth waters. This is actually not only water..but a fluid called saliva secreted by the salivary glands. Another aspect of the food we ingest is its complex nature. If it is to be absorbed from the alimentary canal, it has to be broken into smaller molecules. This is done with the help of biological catalysts called enzyme...

Adaptation in lion & adaptation in deer

  A large area of land covered mainly with trees and plants is called alaust And a large area of grass covered land used for grazing is called grassland There are few trees or places for animals to hide gland habitats. Due to this speal is important for the animals which live in grassland habitats (so they can nits away from their enemies) For most common purposes, however, the wrous forest and and are used in the same sense. The forest (or grassland) is a habitat Many animals such as lon som elephants deer, en live in forest habitats. There are many features of a lion, a deck, other animals and plant which help them to survive in the forest habitat. The adaptations in lion and deer to the forest habitat are described below. Adaptation of lion The lion is a camivorous animal which eats only the meat (or flesh) of oder animals. The lion lives in a forest habitat The adapted to the forest habitat in the following ways: 1.The lion is a strong, fast and agile animal which can hunt and ...