Programming Paradigm

Programming Paradigm

Programming Paradigm:

Programming languages are divided into different Programming Paradigm based on their features, sequence and flow of execution. Some major programming paradigms are:

  • Functional
  • Declarative
  • Imperative
  • Object oriented

 

Difference b/w Programming language and programming paradigm:

Programming paradigms are at an upper level. It tells us the overall type of a

programming while its functional, imperative or declarative etc. it tells us how the flow of the program is whether the program uses functions or direct statements for every little step.

On the other hand, programming language is a less general term than paradigm. There are many programming languages under a single programming paradigm. They just differ in syntax or mnemonics or in using compiler or interpreter. For example, some of the languages which come under the functional paradigm are Haskell, Miranda, Logo and Lisp etc.

 

Some of the programming paradigms are:

 

  • Functional
  • Logic
  • Mathematical
  • Imperative
  • Declarative

Structured Programming

It’s a kind of imperative programming where the flow of programming is dependent on conditions, loops and subroutines etc. instead of controlling the program through jump statements.

 

Imperative paradigm:

In this paradigm, the statements change the program’s state. Each

Statement has its own standing i.e. every statement tells us about the flow of program. It provides a good understanding of the flow and logic of the program. Machine code, which the computer executes directly is also in imperative style. It can also be termed as procedural language. Languages that follow the imperative design are:

 

  • Ada
  • C
  • C++
  • FORTRAN

 

For more topics on software engineering visit this link

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *