Friday 28 December 2012
What is a programming language?

·         Programming languages are formal languages that have been designed to express computations.
·         They have strict rules about syntax.

·         Syntax rules come in 2 flavors, pertaining to:-

a.       Tokens       [basic elements of the language, like words & numbers]
b.      Structure    [the way the tokens are arranged]

A program is formed as shown below:-


Based on how programs are run, the programming languages are of 2 types as:
Low-level language

High-level language

Programs can be run directly without any translation.
Programs have to be translated before they can run & this translation takes time.
Not that easier.
Easier programming
Runs on one kind of computer, and have to be rewritten to run on another.
Portable  [ run on different kinds of computers with few or no medications ]
Eg)  machine / assembly language.
Eg) Java, Python, C or C++, and Perl
·         In a program, errors might come which are called as bugs.

·         There are 3 types of errors:-

1.      Syntax error
2.      Run-time error [exceptions]
3.      Logic / Semantic error

·         Correcting these errors is called Debugging.


There are 2 elements in all programming languages:

1.      Code   [what is happening]
2.      Data    [who is being affected]

·         Programs are conceptually organized around these elements.

·         These form 2 paradigms to categorize all languages as:
 
               (a)   Process-oriented   [code controls data] à  C
               (b)   Object-oriented     [data controls code] à  C++, Java, etc



Now you will have an idea about what programming languages are, so the tutorials will be of more clarity. Click the menu buttons for the tutorials.