By
Harsha Batra
Assistant Professor
www.advanced.edu.in
 This presentation would let know about the
programming, programming languages, it’s
types, difference between programming
languages, paradigms and generations.
www.advanced.edu.in
 A Series of instructions given to a computer
to accomplish a task.
 Instructions must be written in a way the
computer can understand.
 Programming languages are used to write
programs (group of instructions).
www.advanced.edu.in
 A programming language is an artificial language that can be
used to control the behavior of a machine, particularly a
computer
 Programming languages, like human languages, are defined
through the use of syntactic and semantic rules, to determine
structure and meaning respectively.
 Programming languages are used to facilitate communication
about the task of organizing and manipulating information,
and to express algorithms precisely.
www.advanced.edu.in
 Once the code (language) of a program has
been written, it must be executed (run,
started).
 You may need to type the name of the
program to start it, or use a word like RUN
and the name of the program (in the old days,
anyway).
www.advanced.edu.in
 Procedural Programming Language
The procedural programming language is used to execute a sequence of
statements which lead to a result. Typically, this type of programming
language uses multiple variables, heavy loops and other elements, which
separates them from functional programming languages.
 Functional Programming Language
Functional programming language typically uses stored data, frequently
avoiding loops in favor of recursive functions. The functional
programing’s primary focus is on the return values of functions, and side
effects and different suggests that storing state are powerfully discouraged.
www.advanced.edu.in
 Object-oriented Programming Language
This programming language views the world as a group of objects
that have internal data and external accessing parts of that data.
The aim this programming language is to think about the fault by
separating it into a collection of objects that offer services which can
be used to solve a specific problem.
 Scripting Programming Language
These programming languages are often procedural and may
comprise object-oriented language elements, but they fall into their
own category as they are normally not full-fledged programming
languages with support for development of large systems.
www.advanced.edu.in
Common Constructs:
 basic data types (numbers, etc.); variables;
expressions; statements; keywords; control
constructs; procedures; comments; errors ...
Uncommon Constructs:
 type declarations; special types (strings, arrays,
matrices, ...); sequential execution; concurrency
constructs; packages/modules; objects; general
functions; generics; modifiable state; ...
www.advanced.edu.in
 A programming language is a problem-solving tool.
 Imperative style:
program = algorithms + data
good for decomposition
 Functional style:
program = functions o functions
good for reasoning
 Logic programming style:
program = facts + rules
good for searching
 Object-oriented style:
program = objects + messages
good for modeling(!)
Other styles and paradigms: blackboard, pipes and filters, constraints,
lists, ...
www.advanced.edu.in
1GL: machine codes
2GL: symbolic assemblers
3GL: (machine-independent) imperative languages
(FORTRAN, Pascal, C ...)
4GL: domain specific application generators
(Problem Oriented)
5GL: AI language (Natural language)…
www.advanced.edu.in
 Non-computational languages, such as
markup languages like HTML or formal
grammars like BNF, are usually not
considered programming languages.
 Often a programming language is embedded
in the non-computational language.
www.advanced.edu.in

Programming languages ms harsha

  • 1.
  • 2.
     This presentationwould let know about the programming, programming languages, it’s types, difference between programming languages, paradigms and generations. www.advanced.edu.in
  • 3.
     A Seriesof instructions given to a computer to accomplish a task.  Instructions must be written in a way the computer can understand.  Programming languages are used to write programs (group of instructions). www.advanced.edu.in
  • 4.
     A programminglanguage is an artificial language that can be used to control the behavior of a machine, particularly a computer  Programming languages, like human languages, are defined through the use of syntactic and semantic rules, to determine structure and meaning respectively.  Programming languages are used to facilitate communication about the task of organizing and manipulating information, and to express algorithms precisely. www.advanced.edu.in
  • 5.
     Once thecode (language) of a program has been written, it must be executed (run, started).  You may need to type the name of the program to start it, or use a word like RUN and the name of the program (in the old days, anyway). www.advanced.edu.in
  • 6.
     Procedural ProgrammingLanguage The procedural programming language is used to execute a sequence of statements which lead to a result. Typically, this type of programming language uses multiple variables, heavy loops and other elements, which separates them from functional programming languages.  Functional Programming Language Functional programming language typically uses stored data, frequently avoiding loops in favor of recursive functions. The functional programing’s primary focus is on the return values of functions, and side effects and different suggests that storing state are powerfully discouraged. www.advanced.edu.in
  • 7.
     Object-oriented ProgrammingLanguage This programming language views the world as a group of objects that have internal data and external accessing parts of that data. The aim this programming language is to think about the fault by separating it into a collection of objects that offer services which can be used to solve a specific problem.  Scripting Programming Language These programming languages are often procedural and may comprise object-oriented language elements, but they fall into their own category as they are normally not full-fledged programming languages with support for development of large systems. www.advanced.edu.in
  • 8.
    Common Constructs:  basicdata types (numbers, etc.); variables; expressions; statements; keywords; control constructs; procedures; comments; errors ... Uncommon Constructs:  type declarations; special types (strings, arrays, matrices, ...); sequential execution; concurrency constructs; packages/modules; objects; general functions; generics; modifiable state; ... www.advanced.edu.in
  • 9.
     A programminglanguage is a problem-solving tool.  Imperative style: program = algorithms + data good for decomposition  Functional style: program = functions o functions good for reasoning  Logic programming style: program = facts + rules good for searching  Object-oriented style: program = objects + messages good for modeling(!) Other styles and paradigms: blackboard, pipes and filters, constraints, lists, ... www.advanced.edu.in
  • 10.
    1GL: machine codes 2GL:symbolic assemblers 3GL: (machine-independent) imperative languages (FORTRAN, Pascal, C ...) 4GL: domain specific application generators (Problem Oriented) 5GL: AI language (Natural language)… www.advanced.edu.in
  • 11.
     Non-computational languages,such as markup languages like HTML or formal grammars like BNF, are usually not considered programming languages.  Often a programming language is embedded in the non-computational language. www.advanced.edu.in