Everything about technology

Saturday, 30 November 2019

What is programming ? ! Full Information ||Types of programming language



To learn about programming first you know about what is a computer and how a computer works.
Show the question it is what is the computer. A computer is a programmable device that accepts information in the form of binary and processes it and generates some output according to instruction. Let us take an Example-

Consider You give the instruction to computer add two numbers 5 and 6 then what happened the computer process it. This instruction is Processed by ALU. In computer-generated from the output and the output will be printed on your screen 11.

The computer machine can only understand binary 0 or 1 form Show the instruction given to the computer in the binary form. 
Take in mind following key terms.

What is a program?

It is a set of instructions which is given to the computer to process.

What is programming?

 Programming is a method to instruct the computer. We make a program to give instructions to the computer.

What is programming language?

A programming language is a vocabulary and set of grammatical rules for instructing a computer or computing device to perform specific tasks. The term programming language usually refers to high-level languages, such as BASIC, C, C++, COBOL, Java, FORTRAN, Ada, and Pascal.

Types of programming language

There are basically 3 types of programming language.
  1. Low-level Programming language  
  2. Middle-Level Programming language 
  3. High-level programming language 

Low-level Programming language 

It is also known as machine level language. As we know that the computer system or machine only can understand binary signal which is in the form of digits 0 & 1. A machine language consists of instructions that are in binary. Computers can understand only machine level language.

      Writing a program in machine level language is a very difficult task because it is not easy for programmers to write instruction in binary code.  Machine level language program is error-prone and its maintenance is very difficult. Every computer has its own machine instruction, so the program written for one computer is not valid for other computers.

Middle-level language

 To reduce the complexity of machine language a new level language introduce called assembly language. Assembly language instructions are given in English like words such as MOV, ADD, SUB etc. So it is easier to write and understand assembly language.

But we know that a machine only can understand machine language, hence assembly language program must be translated into machine language. To convert assembly language program into machine level language program from we use a translator that translator is called the assembler

Writing a program in assembly language is a bit easier, but still, it is for it is difficult for programmers to debugging, writing etc. And the program also varies from one computer to another computer.

High-level language

High-level language is machine-dependent language. It is like English language. So it is easy to write and understand. While programming in high-level language programmer is not concerned with the low-level details. Programmer total takes attention to the program and logics. Some High-level programming language is COBOL, FORTRAN, BASIC, PHP, C++, JAVA etc.

So here is the same problem as assembly language. Our computer machine does not understand High-level language. Hence We have to convert our high-level program into low-level program. Here we use Compiler And Interpreter to convert our program into low-level language program.

No comments:

Post a Comment

Please do not enter any spam link in comment box.