Briefly explain these main programming paradigm Logic Functi

Briefly explain these main programming paradigm (Logic, Functional, Object Oriented, Procedural, Imperative and Aspect-oriented), and for each of these paradigms name at least one language that can be used for programming in that paradigm.

Solution

Logic Programming:-
It is the programming paradigm which is based on the formal logic.A program written in this paradigm is like the set of the sentences in the logical form which express some facts and the set of rules to solve that particular problem.
It is very high level programming language and mainly used in the AI(Artificial Intelligence) systems.
Currently logical programming uses the first order logic which is often called as First Order Predicate Calculus.

The programming languages that uses this programming paradigm are Prolog,GHC,Vulcan,Fnil.

Functional Programming:-
It is the style of building the elements and the structures of the program in such a way that it treats the entire computation as the evaluation of functions avoiding any change in the state and mutable data.
It is also called declarative programming paradigm , where the programming is done on the expressions rather than bunch of statements. Function is called every time whenever the particular functionality is required.

The programming languages that uses this paradigm are Scheme,Haskell,Miranda.

Object-Oriented Programming:-
It is based on the concept of the objects which may or may not contain the data, in the form of field known as attributes and the codes in the form of procedures which are known as methods.
A feature of OO programming is that it can access and often modify the dta of the object with which they are associated.Also in OOP programming objects are the one which interact with each other to achieve the desired functionality.
The programming languages that uses this approach are C++,Java,C#,Ruby.

Procedural Programming:-
It is derived from the structured programming which is based on the concept of the procedural calls.
Procedures are also known as routines, subroutines or we can call them functions as well which in facts contain the series of the steps that are carried out.
Any procedure can be called at any point of the program during the execution including the procedures for itself.
Computer Processors provides the hardware support for the procedural programming by the stack register and instructions for calling functions and return to the main calling function.

Programming languages that uses this approach are C,Go,Fortran,Pascal,BASIC.

Imperative Programming:-
This is type of the programming which uses the statement in the program to change the program\'s status. It focuses on describing how to execute the program rather than how to achieve the result.

All the machine code is basically written in the imperative style.
Programming languages that uses this approach are COBOL, BASIC etc.

Aspect-Oriented:-
This kind of the methodology is used to increase the modularity in the program by separating the part of the code
which can be executed stand-alone.This is done by adding the additional behaviour in the existing code
without changing the functionality of the existing code.This allows the behaviour to be put in such a way that it do
not impact the business activity which uses the same code.
AOP has tools and methods that support the modularization at the source code level.

Programming languages that uses this approach are Delphi,ColdFusion,Java,C++.

 Briefly explain these main programming paradigm (Logic, Functional, Object Oriented, Procedural, Imperative and Aspect-oriented), and for each of these paradig

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site