SlideShare uma empresa Scribd logo
1 de 27
Lecture 8
Programming Paradigm
& Languages
Lecturer: Sumaira Hussain
S.M.I UNiversity
Programming Languages
The process of telling the computer what to do
Also known as coding
Batch Programs
These are typically started from a shell (or automatically
via a scheduler) and tend to follow a pattern of:
–Initialize internal data
–Read input data
–Process that data
–Print or store results
Key feature: No user interaction with the computer
while the program is running
Examples?
PC are a printing request or an analysis of a Web site log.
Event-Driven Programs
Examples? GUIs, microwave, camera
The system sends events to the program and the
program responds to these as they arrive.
Event-Driven Programs
Events can include things a user does -like
clicking the mouse -or things that the system
itself does -like updating the clock.
These programs generally work as follows:
–Initialize the internal data
–Wait for events to arrive
–Identify an incoming event and react
accordingly
Programming Languages
• Machine Language Assembly Language (1956-63)
• LISP (1956)
• Fortran (1957)
• COBOL (1959)
• PL/1(1964)BASIC (1964)
• Pascal (1970)
• Smalltalk (1972)
• C (1972)
Programming Languages
• Ada(1983)
• C++ (1983-85)
• QBasic (1986)
• Perl (1987)
• VisualBasic (1991)
• PowerBuilderJava (1995)
• JavaScriptC# (2001)
Programming Language
A language used to write instructions for the
computer. That is the way of representation any
program in to that form which is understandable
by CPU.
Programming Language
Programs are written by using any language and
these languages set the procedures & rules to
write computer programs. Programmers have to
follow that rules which is set by programming
languages. Types of Languages
1)Low Level Language
2)High Level Language
LOW LEVEL LANGUAGE
Low level language is also called machine
language. That types of languages are close to
machine and easily understand by machine as, it
is majorly in binary form (0 & 1). low level
language types are
Machine language
Assembly language
HIGH LEVEL LANGUAGE
High level programming languages is languages
program than use languages or syntax which
closes to human languages so; it is easy to
understanding the languages. This type of
language is machine-independent, and uses
similar language as English, which is easily
understandable by human.
TYPES OF HIGH LEVEL LANGUGES
Types of high level languages are:
1) Procedural Languages
2) Functional & Non procedural Languages
3) Object Oriented Languages
Procedural programming languages
FORTRAN (FORmula TRANslation)
BASIC (Beginners All Purpose Symbolic
Instruction Code)
COBOL (Common Business Oriented Language)
These types of languages are “Third-
Generation Language”.
NON PROCEDURAL LANGUGES
In non-procedural languages the computer is
not limited to a set of precise instructions.
Instead, the programmer defines only the
problem—not the instructions--to solve the
problem. Non Procedural Programming
Languages are
SQL (Structured Query Language)
LISP (List Processing)
PROLOG (PROgramming with LOGic)
Object-Oriented Languages
Programming languages specifically designed to
make it easy to implement object-oriented designs
In object-oriented languages, the code used to
write the program and the data processed by the
program are grouped together into units called
objects. Objects are further grouped into classes,
which define the attributes objects must have.
Examples: Smalltalk, C++, Java
Language Translator
A translator is a computer program that
translates a program written in a
given programming language into a functionally
equivalent program in a different computer
language, without losing the functional or
logical structure of the original code
Types of Language Translator
• Compiler
• Interpreter
• Assembler
COMPILER
A compiler is a computer program that
transforms human readable complete code of
another computer program into the machine
readable code that a CPU can execute.
INTERPRETER
An interpreter is a computer program that reads
the source code of another computer program
and executes that program. Because it is
interpreted line by line, it is a much slower way
of running a program than one that has been
compiled but is easier for learners because the
program can be stopped, modified and rerun
without time-consuming compiles.
ASSEMBLER
Assembler converts code written in assembly
language into machine language. It works same
like interpreter and compiler. The assembler
program takes each program statement in the
code and generates a corresponding bit stream
or pattern (a series of 0's and 1's of a given
length).
• Both interpreters and compilers are available
for most high-level languages. However, BASIC
and LISP were especially designed to be
executed by an interpreter
FORTRAN
Fortran is a particularly good language for
processing numerical data, but it does not lend
itself very well to large business programs
Pascal
Pascal is very good for writing well-structured and
readable programs, but it is not as flexible as the C
programming language
C++
C++ embodies powerful object-oriented features,
but it is complex and difficult to learn
Testing & Debugging
•Testing:
The tasks performed to determine the existence of
defects
•Debugging:
The tasks performed to detect the exact location of
defects
•Defects are also called bugs or errors
•Let us now look at one of their classifications
Types of Errors
•Syntax errors
•Semantic errors
•Run-time errors
Syntax Errors
•They are caused by the code that somehow
violates the rules of the language
•Easy to detect and fix errors
•The browser stops code interpretation on
detecting one of these
•Examples:
a = b + * c ;
receiver = receiver + 2
Syntax error?
Semantic Errors
•Occur when a statement executes and has an
effect not intended by the programmer
•Hard to detect during normal testing
•Often times occur only in unusual & infrequent
circumstances
•The „+‟ operator often results in unintended
consequences. Remedy: Convert, before use
Run-Time Errors
•Occur when the program is running and tries to
do something that is against the rules
•Example: Accessing a non-existent variable,
property, method, object, etc (e.g. a method
name is misspelled)
•Sources of these can be determined by a
careful reading of the code, but unfortunately,
not always!

Mais conteúdo relacionado

Mais procurados

Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & ImplementationBilal Maqbool ツ
 
Visual Programming
Visual ProgrammingVisual Programming
Visual ProgrammingBagzzz
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer ProgrammingAllen de Castro
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingSangheethaa Sukumaran
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2REHAN IJAZ
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language TranslatorRanjeet Kumar
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language adnan usmani
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languageseducationfront
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
 

Mais procurados (20)

Basic+machine+organization
Basic+machine+organizationBasic+machine+organization
Basic+machine+organization
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
 
Programming
ProgrammingProgramming
Programming
 
Computer Programming
Computer Programming Computer Programming
Computer Programming
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 

Destaque

Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsDirecti Group
 
Programming Paradigms Seminar 1
Programming Paradigms Seminar 1Programming Paradigms Seminar 1
Programming Paradigms Seminar 1neoxiuting
 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigmBhavin Kamani
 
XKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsXKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsNicolas Demengel
 
Programming Paradigm
Programming ParadigmProgramming Paradigm
Programming ParadigmSabahtHussein
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming FundamentalsShahriar Hyder
 
Functional Programming Patterns (BuildStuff '14)
Functional Programming Patterns (BuildStuff '14)Functional Programming Patterns (BuildStuff '14)
Functional Programming Patterns (BuildStuff '14)Scott Wlaschin
 
Introduction to Functional Programming with Scala
Introduction to Functional Programming with ScalaIntroduction to Functional Programming with Scala
Introduction to Functional Programming with Scalapramode_ce
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsLi SUN
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm Kaya Ota
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsLeo Hernandez
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ LanguageFarid Hilal
 
Imperative programming
Imperative programmingImperative programming
Imperative programmingEdward Blurock
 

Destaque (20)

Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
Programming Paradigms Seminar 1
Programming Paradigms Seminar 1Programming Paradigms Seminar 1
Programming Paradigms Seminar 1
 
Programming paradigm
Programming paradigmProgramming paradigm
Programming paradigm
 
Paradigms
ParadigmsParadigms
Paradigms
 
XKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsXKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & Constructs
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
Programming Paradigm
Programming ParadigmProgramming Paradigm
Programming Paradigm
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
 
Prgramming paradigms
Prgramming paradigmsPrgramming paradigms
Prgramming paradigms
 
Functional Programming Fundamentals
Functional Programming FundamentalsFunctional Programming Fundamentals
Functional Programming Fundamentals
 
Functional Programming Patterns (BuildStuff '14)
Functional Programming Patterns (BuildStuff '14)Functional Programming Patterns (BuildStuff '14)
Functional Programming Patterns (BuildStuff '14)
 
Introduction to Functional Programming with Scala
Introduction to Functional Programming with ScalaIntroduction to Functional Programming with Scala
Introduction to Functional Programming with Scala
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
 
Imperative programming
Imperative programmingImperative programming
Imperative programming
 
C/C++ History in few slides
C/C++ History in few slides C/C++ History in few slides
C/C++ History in few slides
 
History of c++
History of c++ History of c++
History of c++
 

Semelhante a Programming Paradigm & Languages

Semelhante a Programming Paradigm & Languages (20)

Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Comso c++
Comso c++Comso c++
Comso c++
 
1.Overview of Programming.pptx
1.Overview of Programming.pptx1.Overview of Programming.pptx
1.Overview of Programming.pptx
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
week 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptxweek 2 - INTRO TO PROGRAMMING.pptx
week 2 - INTRO TO PROGRAMMING.pptx
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
 
C++ programming languages lectures
C++ programming languages lectures C++ programming languages lectures
C++ programming languages lectures
 
Programming languages
Programming languages Programming languages
Programming languages
 

Mais de Gaditek

Digital marketing strategy and planning | About Business
Digital marketing strategy and planning | About BusinessDigital marketing strategy and planning | About Business
Digital marketing strategy and planning | About BusinessGaditek
 
Intro to social network analysis | What is Network Analysis? | History of (So...
Intro to social network analysis | What is Network Analysis? | History of (So...Intro to social network analysis | What is Network Analysis? | History of (So...
Intro to social network analysis | What is Network Analysis? | History of (So...Gaditek
 
Marketing ethics and social responsibility | Criticisms of Marketing
Marketing ethics and social responsibility | Criticisms of MarketingMarketing ethics and social responsibility | Criticisms of Marketing
Marketing ethics and social responsibility | Criticisms of MarketingGaditek
 
understanding and capturing customer value | What Is a Price?
understanding and capturing customer value | What Is a Price?understanding and capturing customer value | What Is a Price?
understanding and capturing customer value | What Is a Price?Gaditek
 
The marketing environment | Suppliers | Marketing intermediaries
The marketing environment | Suppliers | Marketing intermediariesThe marketing environment | Suppliers | Marketing intermediaries
The marketing environment | Suppliers | Marketing intermediariesGaditek
 
strategic planning | Customer Relationships | Partnering to Build
strategic planning | Customer Relationships | Partnering to Build strategic planning | Customer Relationships | Partnering to Build
strategic planning | Customer Relationships | Partnering to Build Gaditek
 
Digital marketing | what is marketing?
Digital marketing | what is marketing?Digital marketing | what is marketing?
Digital marketing | what is marketing?Gaditek
 
Fundamentals of Computer Design including performance measurements & quantita...
Fundamentals of Computer Design including performance measurements & quantita...Fundamentals of Computer Design including performance measurements & quantita...
Fundamentals of Computer Design including performance measurements & quantita...Gaditek
 
Dealing with exceptions Computer Architecture part 2
Dealing with exceptions Computer Architecture part 2Dealing with exceptions Computer Architecture part 2
Dealing with exceptions Computer Architecture part 2Gaditek
 
Dealing with Exceptions Computer Architecture part 1
Dealing with Exceptions Computer Architecture part 1Dealing with Exceptions Computer Architecture part 1
Dealing with Exceptions Computer Architecture part 1Gaditek
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of ProcessorsGaditek
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
differential equation Lecture#14
differential equation  Lecture#14differential equation  Lecture#14
differential equation Lecture#14Gaditek
 
differential equation Lecture#12
differential equation Lecture#12differential equation Lecture#12
differential equation Lecture#12Gaditek
 
differential equation Lecture#11
differential equation Lecture#11differential equation Lecture#11
differential equation Lecture#11Gaditek
 
differential equation Lecture#13
differential equation Lecture#13differential equation Lecture#13
differential equation Lecture#13Gaditek
 
differential equation Lecture#10
differential equation Lecture#10differential equation Lecture#10
differential equation Lecture#10Gaditek
 
differential equation Lecture#9
differential equation  Lecture#9differential equation  Lecture#9
differential equation Lecture#9Gaditek
 
differential equation Lecture#8
differential equation Lecture#8differential equation Lecture#8
differential equation Lecture#8Gaditek
 
differential equation Lecture#7
differential equation Lecture#7differential equation Lecture#7
differential equation Lecture#7Gaditek
 

Mais de Gaditek (20)

Digital marketing strategy and planning | About Business
Digital marketing strategy and planning | About BusinessDigital marketing strategy and planning | About Business
Digital marketing strategy and planning | About Business
 
Intro to social network analysis | What is Network Analysis? | History of (So...
Intro to social network analysis | What is Network Analysis? | History of (So...Intro to social network analysis | What is Network Analysis? | History of (So...
Intro to social network analysis | What is Network Analysis? | History of (So...
 
Marketing ethics and social responsibility | Criticisms of Marketing
Marketing ethics and social responsibility | Criticisms of MarketingMarketing ethics and social responsibility | Criticisms of Marketing
Marketing ethics and social responsibility | Criticisms of Marketing
 
understanding and capturing customer value | What Is a Price?
understanding and capturing customer value | What Is a Price?understanding and capturing customer value | What Is a Price?
understanding and capturing customer value | What Is a Price?
 
The marketing environment | Suppliers | Marketing intermediaries
The marketing environment | Suppliers | Marketing intermediariesThe marketing environment | Suppliers | Marketing intermediaries
The marketing environment | Suppliers | Marketing intermediaries
 
strategic planning | Customer Relationships | Partnering to Build
strategic planning | Customer Relationships | Partnering to Build strategic planning | Customer Relationships | Partnering to Build
strategic planning | Customer Relationships | Partnering to Build
 
Digital marketing | what is marketing?
Digital marketing | what is marketing?Digital marketing | what is marketing?
Digital marketing | what is marketing?
 
Fundamentals of Computer Design including performance measurements & quantita...
Fundamentals of Computer Design including performance measurements & quantita...Fundamentals of Computer Design including performance measurements & quantita...
Fundamentals of Computer Design including performance measurements & quantita...
 
Dealing with exceptions Computer Architecture part 2
Dealing with exceptions Computer Architecture part 2Dealing with exceptions Computer Architecture part 2
Dealing with exceptions Computer Architecture part 2
 
Dealing with Exceptions Computer Architecture part 1
Dealing with Exceptions Computer Architecture part 1Dealing with Exceptions Computer Architecture part 1
Dealing with Exceptions Computer Architecture part 1
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of Processors
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
differential equation Lecture#14
differential equation  Lecture#14differential equation  Lecture#14
differential equation Lecture#14
 
differential equation Lecture#12
differential equation Lecture#12differential equation Lecture#12
differential equation Lecture#12
 
differential equation Lecture#11
differential equation Lecture#11differential equation Lecture#11
differential equation Lecture#11
 
differential equation Lecture#13
differential equation Lecture#13differential equation Lecture#13
differential equation Lecture#13
 
differential equation Lecture#10
differential equation Lecture#10differential equation Lecture#10
differential equation Lecture#10
 
differential equation Lecture#9
differential equation  Lecture#9differential equation  Lecture#9
differential equation Lecture#9
 
differential equation Lecture#8
differential equation Lecture#8differential equation Lecture#8
differential equation Lecture#8
 
differential equation Lecture#7
differential equation Lecture#7differential equation Lecture#7
differential equation Lecture#7
 

Último

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Último (20)

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

Programming Paradigm & Languages

  • 1. Lecture 8 Programming Paradigm & Languages Lecturer: Sumaira Hussain S.M.I UNiversity
  • 2. Programming Languages The process of telling the computer what to do Also known as coding
  • 3. Batch Programs These are typically started from a shell (or automatically via a scheduler) and tend to follow a pattern of: –Initialize internal data –Read input data –Process that data –Print or store results Key feature: No user interaction with the computer while the program is running Examples? PC are a printing request or an analysis of a Web site log.
  • 4. Event-Driven Programs Examples? GUIs, microwave, camera The system sends events to the program and the program responds to these as they arrive.
  • 5. Event-Driven Programs Events can include things a user does -like clicking the mouse -or things that the system itself does -like updating the clock. These programs generally work as follows: –Initialize the internal data –Wait for events to arrive –Identify an incoming event and react accordingly
  • 6. Programming Languages • Machine Language Assembly Language (1956-63) • LISP (1956) • Fortran (1957) • COBOL (1959) • PL/1(1964)BASIC (1964) • Pascal (1970) • Smalltalk (1972) • C (1972)
  • 7. Programming Languages • Ada(1983) • C++ (1983-85) • QBasic (1986) • Perl (1987) • VisualBasic (1991) • PowerBuilderJava (1995) • JavaScriptC# (2001)
  • 8. Programming Language A language used to write instructions for the computer. That is the way of representation any program in to that form which is understandable by CPU.
  • 9. Programming Language Programs are written by using any language and these languages set the procedures & rules to write computer programs. Programmers have to follow that rules which is set by programming languages. Types of Languages 1)Low Level Language 2)High Level Language
  • 10. LOW LEVEL LANGUAGE Low level language is also called machine language. That types of languages are close to machine and easily understand by machine as, it is majorly in binary form (0 & 1). low level language types are Machine language Assembly language
  • 11. HIGH LEVEL LANGUAGE High level programming languages is languages program than use languages or syntax which closes to human languages so; it is easy to understanding the languages. This type of language is machine-independent, and uses similar language as English, which is easily understandable by human.
  • 12. TYPES OF HIGH LEVEL LANGUGES Types of high level languages are: 1) Procedural Languages 2) Functional & Non procedural Languages 3) Object Oriented Languages
  • 13. Procedural programming languages FORTRAN (FORmula TRANslation) BASIC (Beginners All Purpose Symbolic Instruction Code) COBOL (Common Business Oriented Language) These types of languages are “Third- Generation Language”.
  • 14. NON PROCEDURAL LANGUGES In non-procedural languages the computer is not limited to a set of precise instructions. Instead, the programmer defines only the problem—not the instructions--to solve the problem. Non Procedural Programming Languages are SQL (Structured Query Language) LISP (List Processing) PROLOG (PROgramming with LOGic)
  • 15. Object-Oriented Languages Programming languages specifically designed to make it easy to implement object-oriented designs In object-oriented languages, the code used to write the program and the data processed by the program are grouped together into units called objects. Objects are further grouped into classes, which define the attributes objects must have. Examples: Smalltalk, C++, Java
  • 16. Language Translator A translator is a computer program that translates a program written in a given programming language into a functionally equivalent program in a different computer language, without losing the functional or logical structure of the original code
  • 17. Types of Language Translator • Compiler • Interpreter • Assembler
  • 18. COMPILER A compiler is a computer program that transforms human readable complete code of another computer program into the machine readable code that a CPU can execute.
  • 19. INTERPRETER An interpreter is a computer program that reads the source code of another computer program and executes that program. Because it is interpreted line by line, it is a much slower way of running a program than one that has been compiled but is easier for learners because the program can be stopped, modified and rerun without time-consuming compiles.
  • 20. ASSEMBLER Assembler converts code written in assembly language into machine language. It works same like interpreter and compiler. The assembler program takes each program statement in the code and generates a corresponding bit stream or pattern (a series of 0's and 1's of a given length).
  • 21. • Both interpreters and compilers are available for most high-level languages. However, BASIC and LISP were especially designed to be executed by an interpreter
  • 22. FORTRAN Fortran is a particularly good language for processing numerical data, but it does not lend itself very well to large business programs Pascal Pascal is very good for writing well-structured and readable programs, but it is not as flexible as the C programming language C++ C++ embodies powerful object-oriented features, but it is complex and difficult to learn
  • 23. Testing & Debugging •Testing: The tasks performed to determine the existence of defects •Debugging: The tasks performed to detect the exact location of defects •Defects are also called bugs or errors •Let us now look at one of their classifications
  • 24. Types of Errors •Syntax errors •Semantic errors •Run-time errors
  • 25. Syntax Errors •They are caused by the code that somehow violates the rules of the language •Easy to detect and fix errors •The browser stops code interpretation on detecting one of these •Examples: a = b + * c ; receiver = receiver + 2 Syntax error?
  • 26. Semantic Errors •Occur when a statement executes and has an effect not intended by the programmer •Hard to detect during normal testing •Often times occur only in unusual & infrequent circumstances •The „+‟ operator often results in unintended consequences. Remedy: Convert, before use
  • 27. Run-Time Errors •Occur when the program is running and tries to do something that is against the rules •Example: Accessing a non-existent variable, property, method, object, etc (e.g. a method name is misspelled) •Sources of these can be determined by a careful reading of the code, but unfortunately, not always!