Home / Programming Language / What is programming Language? – Introduction to Programming

What is programming Language? – Introduction to Programming

What is programming language ? – if you are a technology lover or interested in technology then you must have heard the term – ” Programming Language “. Then you came here to figure it out that what programming language really is? If it so, then let’s figure it out :

programming language
programming language

Programming Language :

From the formation of this earth till now there created thousands of programming language in total. But from them 700 gained popularity among us. Such as – C, C++, Java, Python, Perl, BASIC, COBOL, FORTRAN, Ada, and Pascal. etc. This languages are not for speaking with peoples. This languages are manly used for creating computers and computer related gadgets. Generally a programming language is a computer language, programmers use to develop software programs, scripts, or other sets of instructions for computers to execute.

Definition of programming language:

Basically, Programming languages are set of commands, instructions, and other syntax . Programmers uses this instructions to instruct some machines like – computer and computer related software and hardware.

Although most of the programming language has similarities, each has its own syntax. Once a programmer learns the languages rules, syntax, and structure, they write the source code in a text editor or IDE. Then, the programmer often compiles the code into machine language that can be understood by the computer.

Types of programming languages :

Normally there are three types of programming language. Such as –

  1. Machine language.
  2. Assembly language.
  3. High-level language.

What is Machine Language?

Machine language is also known as Machine code or Object code. This language, or machine code, is a low-level language comprised of binary digits (ones and zeros). Machine code is only and one language which a computer device can understand directly.

When a code is written for a programme with the help of machine language it can be differ from Operating System to Operating System. Because there is a set of default functions which are previously designed for each and every Operating System. Also there are no use of any translation tools for a machine language programme as the computer system understands the language directly . So, if you write any programme using machine language in a Operating System the others will not understand it.

Example of machine Language :

010010000110010101101100
011011000110111100100000
010101110110111101110010
0110110001100100

The code which is written above is written with the help of binary machine language. If you run this code you will get an output which will show you ” Hello World ” in the screen.

Here is another example of machine language but with the help of non-binary code. If you execute this code it will print “A” for 1000 times.

169 1 160 0 153 0 128
153 0 129 153 130 153 0
131 200 208 241 96

What is Assembly language?

In computer programming, assembly language (or assembler language), often abbreviated asm. An assembly language is a low-level programming language designed for a specific type of processor. Each personal computer has a microprocessor that manages the computer’s arithmetical, logical, and control activities. Each family of processors has its own set of instructions for handling various operations such as getting input from keyboard, displaying information on screen and performing various other jobs. These set of instructions are called ‘machine language instructions’. It may be produced by compiling source code from a high-level programming language (such as C/C++) but can also be written from scratch. Assembly code can be converted to machine code using an assembler. Assembly language may also be called symbolic machine code.

NB: Computer do not understand any language without the machine language. So, with the help of Assembler, the assembly code is converted to machine code.

Example of Assembly language instructions :

  • MOV – This instruction is used to move data from one location to another.
  • ADD – This is Used to add two numbers.
  • SUB – this instruction is subtracting one value from another value.

Example of Assembly language Programme :

The following assembly language ​​is used to add 3 and 4:

mov eax, 3 ——-> Puts 3 into the “eax”.

mov ebx, 4 ——-> Puts 4 into “ebx”.

add eax, ebx, ecx ——-> Adds “eax” and “ebx” and keep it into “ecx”.

What is High-level Language?

A high-level language is a programming language designed to simplify computer programming. A high-level language is any programming language that enables development of a program in a much more user-friendly programming context and is generally independent of the computer’s hardware architecture. This kinds of Language do not works directly with the memory.

Such as – C++, PERL, PYTHON, JAVA etc.

C++, PERL, PYTHON, JAVA etc. This are the example of some higher level of programming language. But In C we have to work directly with memory so it is not the higher level language.

Example of High-Level programme :

Here is given an example of java programming language which will give an output which will show you ” Hello World “.

public class CrystalTrix
{
public static void main(String args[])
{
System.out.println(“Hello World”);
}
}

Thank you for reading this post. If you are also ambitious to write blogs and want to improve your writing skills then create an account to this site and start writing new posts. You can also generate traffique for your site by writing your site’s post and link . See the rules of writing new post to know more.Also if you have any Question about this post or anything then comment below or mail me.

0%

User Rating: Be the first one !

Report this post if contains any Adult Content or Plagiarism :

About Md. Sabbir Al Mamon

I am Md.Sabbir Al Mamon. Now I'm studying CSE in BRAC University.

Leave a Reply