Tuesday, March 3, 2015

Explain Procedural and Non Procedural Programming Languages

Procedural Languages

In procedural languages a program is written as sequence of instructions. We have to specify what to do and how to do (step by step procedure). These instructions are executed in the specified order. These instructions are written in order to solve a specific problem. Example of procedural languages are:

a) FORTRAN (FORrmula TRANslation)

b) COBOL (Common Business Oriented Language)

c) C – Language

d) BASIC (Beginners All Purpose Symbolic Language)

Non-Procedural Languages

In non-procedural languages we have to specify only “what to do” and not “how to do”. For example, SQL (structured query language) is a non procedural language. It is used in database systems. Other non procedural languages are

a) PROLOG (PROgramming in LOGic) used in artificial intelligence programming.