SlideShare a Scribd company logo
6
Most read
19
Most read
20
Most read
CSC141 Introduction to Computer Programming

Programming
Language
CSC141 Introduction to Computer Programming

Programming Language
• A programming Language is a notational system

intended primarily to facilitate human-machine
interaction.
• The notational is understood both by human and

machine.
• The programming language has Syntax, and

language elements have Semantics.
CSC141 Introduction to Computer Programming

What is a program?
• A program is something that is produced using a

programming Language.
•A

program
Semantics.

is

a

structured

entity

with
CSC141 Introduction to Computer Programming

What is programming?
CSC141 Introduction to Computer Programming

What is programming?
• Programming is a Science:
Because it implement the algorithms describe by
mathematics and science.
• Programming is a Skill:
Because it requires design efforts.
• Programming is an Engineering:
Because it requires a tradeoffs between program
size, speed, time (required for development and
debugging) and maintainability among many
solutions.
• Programming is an Art
It requires creativity and employ imagination.
CSC141 Introduction to Computer Programming

Types of programming
Languages
CSC141 Introduction to Computer Programming

Levels/Generations of Programming Languages
• 1st Generation Programming language (1GL)
• 2nd Generation Programming language (2GL)
• Assembly Language : Mnemonics
• 3rd Generation Programming language (3GL)
• High-Level Languages ; (procedure oriented or

Object Oriented)
• 4th Generation Programming language (4GL)
• Very-High-Level Languages
• 5th Generation Programming Language
• Natural Languages

CSC141 Introduction to Computer Programming

• Machine Language: 0s or 1s
CSC141 Introduction to Computer Programming

Machine language (1GL)
• The lowest level of language.
• The

language used to program the firstgeneration computers.
• The instructions in 1GL are made of binary
numbers, represented by 1s and 0s.
• 1s and 0s correspond to the on and off states of
electrical switches.
• Suitable for the understanding of the machine but
very much difficult to interpret and learn by the
human programmer.
CSC141 Introduction to Computer Programming

Assembly language (2GL)
• Low-level language that allows a programmer to

use abbreviations or easily remembered words
instead of numbers.
• These Observations are called Mnemonics. These
Mnemonic are Opcode and Operands
For Example:
ADD AX, BX
MOV CX, AX
INC CX
Op-code; ADD, MOV, INC
Operands AX, BX,CX
CSC141 Introduction to Computer Programming

Assembly language (2GL)
• Programmer can write instructions faster but it is

still not an easy language to learn.
• Drawback: The language is specific to a
particular processor family and environment.
(Machine Dependent Language)
• Assembler – A program that translates the
assembly language program into machine
language.
CSC141 Introduction to Computer Programming

High Level languages (3GL)
•A

High-Level Language is an English-like
language.
• It is a refinement of a second-generation
programming language.
• It allowed users to write in familiar notation, rather
than numbers or abbreviations.
• Most High-level languages are not Machine
Dependent.
• Translator for High-level languages is either a
Compiler or an Interpreter.
• Examples of High-level languages:
―FORTRON
―COBOL
―BASIC
―C and C++
CSC141 Introduction to Computer Programming

Very-High-Level Languages (4GL)
• 4GLs

are much more user-oriented and allow
programmers to develop programs with fewer commands
compared with 3GLs.
• Non-Procedural Language; Programmers don’t have to
specify all the programming logic, only tell the computer
what they want done.
• Saves a lot of time.
• 4GLs
consist
of
report
generators,
query
languages, application generators, and interactive
database management system
• For example:
• RPG III (Report Generator)
• SQL (Structured Query Language)
• NOMAD and FOCUS (DBMS)
CSC141 Introduction to Computer Programming

Natural Languages (5GL)
• Two types
• Ordinary Human Languages; like English.

• Programming

language that use human
language to give people a more natural
connection with computers.
• 5GLs are designed to make the computer solve
a given problem without the programmer.
• Natural languages are part of the field of study
known as Artificial Intelligence.
• Develop machines to emulate human-like
qualities
such
as
learning, reasoning, communicating, seeing and
CSC141 Introduction to Computer Programming

Evolution of Programming
CSC141 Introduction to Computer Programming

Programming Paradigms
A number of programming paradigms are:
• Procedural/Imperative Programming
• Functional Programming
• Declarative Programming
• Object Oriented Programming
• Event driven Programming
• Parallel Programming
CSC141 Introduction to Computer Programming

Procedural or Imperative:
• Imperative programs emphasize “tell what to do”
• When we say “ Do this, then do this, then do

this, and if xx, do this, otherwise do this” This is
imperative programming:
• They focus on evaluating expressions and storing
results in a variable.
• The most common imperative language consists
of statements such as:
a = 10;
b = 5;
c = a + b;
CSC141 Introduction to Computer Programming

Procedural or Imperative: … Contd
Example of imperative languages are:
• Assembly language
• COBOL
• Pascal
• C and C++
CSC141 Introduction to Computer Programming

Is there any Best Programming Language?
• Programming Language is probably used most

efficient if it is well suited for a specific task.
• For example
• Business applications are often written in
COBOL.
• Beginners to programming use BASIC.
• Scientific programming is often undertaken with
either FORTON, PASCAL or C.
CSC141 Introduction to Computer Programming

Language Evaluation Criteria
• Readability:

measure programmer ease in reading source
code
• Orthogonality: include context sensitive restrictions.
• Applicability: this is best suited as “use the right tool for the
job”
• Writ ability:
includes simplicity and orthogonality and
support for the abstraction
• Reliability:
include type checking and inspection handling
• Cost:
includes learning and writing cost, productivity,
compilation cost, execution cost, debugging
cost etc.
• Other:
flexibility of control statements and availability
of data structures
CSC141 Introduction to Computer Programming

History of C Language
• A general-purpose computer programming language.
• Developed between 1969 and 1973 by Dennis Ritchie at

•
•

•
•
•

the Bell Telephone Laboratories for use with the UNIX
operating system.
Descendant of Ken Thompson’s language “B”
The first C programming language standard was
published in 1978 as “The C Programming Language” by
Kernighan and Ritchie (K&R).
"ANSI C" was the second C programming language
standard published in 1989.
ISO approved “ANSI C” in 1990.
The latest stable release is C11.

More Related Content

PPT
Generation of computer languages
PPT
Programming languages
PPTX
introduction to programming languages
PDF
Programming languages and concepts by vivek parihar
PPT
Computer programming concepts
PDF
C Language
PPTX
FIT-Unit3 chapter2- Computer Languages
PPT
Language translator
Generation of computer languages
Programming languages
introduction to programming languages
Programming languages and concepts by vivek parihar
Computer programming concepts
C Language
FIT-Unit3 chapter2- Computer Languages
Language translator

What's hot (20)

PPTX
Types of Programming Languages
PPTX
Introduction to programming languages
PPTX
Programming languages
PPT
4 evolution-of-programming-languages
PPT
Lect 1. introduction to programming languages
PPT
Computer Languages
PPTX
Programming Paradigm & Languages
PPTX
Programming languages
PPT
Programming
PPT
Computer languages 11
PPSX
Programming languages
PPT
Intro To Programming Concepts
PDF
Machine language
PPTX
Programming languages
PPTX
Programming Fundamentals lecture 1
PPTX
Programming paradigm
PPT
Peter Norton’s Introduction to Computers
PPTX
Introduction to basic programming
PPTX
Presentation on Operating System & its Components
PPTX
Translators(Compiler, Assembler) and interpreter
Types of Programming Languages
Introduction to programming languages
Programming languages
4 evolution-of-programming-languages
Lect 1. introduction to programming languages
Computer Languages
Programming Paradigm & Languages
Programming languages
Programming
Computer languages 11
Programming languages
Intro To Programming Concepts
Machine language
Programming languages
Programming Fundamentals lecture 1
Programming paradigm
Peter Norton’s Introduction to Computers
Introduction to basic programming
Presentation on Operating System & its Components
Translators(Compiler, Assembler) and interpreter
Ad

Viewers also liked (20)

PPTX
Powerpoint on Software Concept (ClassXI)
PDF
Introduction to computer programming
PPTX
Consumers' welfare and protection
PPT
Consumer Product Safety Commission3
PPTX
Excel Lesson 1: Excel Basics
PPT
Computer Programming - Lecture 1
PPTX
Class Presentation on WhatsApp
PPTX
Whatsapp PPT Presentation
PPTX
Consumerism
PPTX
Computer programmer
ODP
Computer programmer job information
PPTX
Programmer ppt
PPT
Teaching Excel
PPTX
Microsoft Excel Basics
PPTX
Ppt on consumers rights
PPTX
whatsapp ppt
PPT
Computer hardware component. ppt
PPT
computer software
PPTX
Consumer rights
PPT
Parts of a Computer
Powerpoint on Software Concept (ClassXI)
Introduction to computer programming
Consumers' welfare and protection
Consumer Product Safety Commission3
Excel Lesson 1: Excel Basics
Computer Programming - Lecture 1
Class Presentation on WhatsApp
Whatsapp PPT Presentation
Consumerism
Computer programmer
Computer programmer job information
Programmer ppt
Teaching Excel
Microsoft Excel Basics
Ppt on consumers rights
whatsapp ppt
Computer hardware component. ppt
computer software
Consumer rights
Parts of a Computer
Ad

Similar to Introduction to Programming Languages (20)

PPTX
Programming Language
PPTX
Programming basics
PPTX
Mcs lec2
PPTX
Introduction To Computer Programming
PPT
principle of programming language subject unit-1
DOC
Machine language to artificial intelligence
PDF
IS L04 Programming Language
PDF
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
PPTX
Programming.language
PPT
Introduction Programming Languages
PPTX
Python-L1.pptx
PPTX
CSC116-Topic3 .pptx
PPTX
computer programming computer programmin
DOCX
GENERATIONS_OF_PROGRAMMING_LANGUAGES.docx
PPTX
Programming languages and paradigms
PPTX
programming.pptx
PPT
System softare
PPT
Introduction to Computer
PPTX
Computer Language
Programming Language
Programming basics
Mcs lec2
Introduction To Computer Programming
principle of programming language subject unit-1
Machine language to artificial intelligence
IS L04 Programming Language
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
Programming.language
Introduction Programming Languages
Python-L1.pptx
CSC116-Topic3 .pptx
computer programming computer programmin
GENERATIONS_OF_PROGRAMMING_LANGUAGES.docx
Programming languages and paradigms
programming.pptx
System softare
Introduction to Computer
Computer Language

More from educationfront (7)

PPTX
Personality Development in Islam
PPTX
Discussing Fundamentals of C
PPT
C Programming
PPTX
Fundamentals of Computer
PPTX
Fcp lecture 01
PPTX
Punjab Public Service Commission (PPSC)
PPT
Action research
Personality Development in Islam
Discussing Fundamentals of C
C Programming
Fundamentals of Computer
Fcp lecture 01
Punjab Public Service Commission (PPSC)
Action research

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Trump Administration's workforce development strategy
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Lesson notes of climatology university.
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
O7-L3 Supply Chain Operations - ICLT Program
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Supply Chain Operations Speaking Notes -ICLT Program
Chinmaya Tiranga quiz Grand Finale.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
human mycosis Human fungal infections are called human mycosis..pptx
Trump Administration's workforce development strategy
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Lesson notes of climatology university.
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A systematic review of self-coping strategies used by university students to ...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
01-Introduction-to-Information-Management.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx

Introduction to Programming Languages

  • 1. CSC141 Introduction to Computer Programming Programming Language
  • 2. CSC141 Introduction to Computer Programming Programming Language • A programming Language is a notational system intended primarily to facilitate human-machine interaction. • The notational is understood both by human and machine. • The programming language has Syntax, and language elements have Semantics.
  • 3. CSC141 Introduction to Computer Programming What is a program? • A program is something that is produced using a programming Language. •A program Semantics. is a structured entity with
  • 4. CSC141 Introduction to Computer Programming What is programming?
  • 5. CSC141 Introduction to Computer Programming What is programming? • Programming is a Science: Because it implement the algorithms describe by mathematics and science. • Programming is a Skill: Because it requires design efforts. • Programming is an Engineering: Because it requires a tradeoffs between program size, speed, time (required for development and debugging) and maintainability among many solutions. • Programming is an Art It requires creativity and employ imagination.
  • 6. CSC141 Introduction to Computer Programming Types of programming Languages
  • 7. CSC141 Introduction to Computer Programming Levels/Generations of Programming Languages • 1st Generation Programming language (1GL) • 2nd Generation Programming language (2GL) • Assembly Language : Mnemonics • 3rd Generation Programming language (3GL) • High-Level Languages ; (procedure oriented or Object Oriented) • 4th Generation Programming language (4GL) • Very-High-Level Languages • 5th Generation Programming Language • Natural Languages CSC141 Introduction to Computer Programming • Machine Language: 0s or 1s
  • 8. CSC141 Introduction to Computer Programming Machine language (1GL) • The lowest level of language. • The language used to program the firstgeneration computers. • The instructions in 1GL are made of binary numbers, represented by 1s and 0s. • 1s and 0s correspond to the on and off states of electrical switches. • Suitable for the understanding of the machine but very much difficult to interpret and learn by the human programmer.
  • 9. CSC141 Introduction to Computer Programming Assembly language (2GL) • Low-level language that allows a programmer to use abbreviations or easily remembered words instead of numbers. • These Observations are called Mnemonics. These Mnemonic are Opcode and Operands For Example: ADD AX, BX MOV CX, AX INC CX Op-code; ADD, MOV, INC Operands AX, BX,CX
  • 10. CSC141 Introduction to Computer Programming Assembly language (2GL) • Programmer can write instructions faster but it is still not an easy language to learn. • Drawback: The language is specific to a particular processor family and environment. (Machine Dependent Language) • Assembler – A program that translates the assembly language program into machine language.
  • 11. CSC141 Introduction to Computer Programming High Level languages (3GL) •A High-Level Language is an English-like language. • It is a refinement of a second-generation programming language. • It allowed users to write in familiar notation, rather than numbers or abbreviations. • Most High-level languages are not Machine Dependent. • Translator for High-level languages is either a Compiler or an Interpreter. • Examples of High-level languages: ―FORTRON ―COBOL ―BASIC ―C and C++
  • 12. CSC141 Introduction to Computer Programming Very-High-Level Languages (4GL) • 4GLs are much more user-oriented and allow programmers to develop programs with fewer commands compared with 3GLs. • Non-Procedural Language; Programmers don’t have to specify all the programming logic, only tell the computer what they want done. • Saves a lot of time. • 4GLs consist of report generators, query languages, application generators, and interactive database management system • For example: • RPG III (Report Generator) • SQL (Structured Query Language) • NOMAD and FOCUS (DBMS)
  • 13. CSC141 Introduction to Computer Programming Natural Languages (5GL) • Two types • Ordinary Human Languages; like English. • Programming language that use human language to give people a more natural connection with computers. • 5GLs are designed to make the computer solve a given problem without the programmer. • Natural languages are part of the field of study known as Artificial Intelligence. • Develop machines to emulate human-like qualities such as learning, reasoning, communicating, seeing and
  • 14. CSC141 Introduction to Computer Programming Evolution of Programming
  • 15. CSC141 Introduction to Computer Programming Programming Paradigms A number of programming paradigms are: • Procedural/Imperative Programming • Functional Programming • Declarative Programming • Object Oriented Programming • Event driven Programming • Parallel Programming
  • 16. CSC141 Introduction to Computer Programming Procedural or Imperative: • Imperative programs emphasize “tell what to do” • When we say “ Do this, then do this, then do this, and if xx, do this, otherwise do this” This is imperative programming: • They focus on evaluating expressions and storing results in a variable. • The most common imperative language consists of statements such as: a = 10; b = 5; c = a + b;
  • 17. CSC141 Introduction to Computer Programming Procedural or Imperative: … Contd Example of imperative languages are: • Assembly language • COBOL • Pascal • C and C++
  • 18. CSC141 Introduction to Computer Programming Is there any Best Programming Language? • Programming Language is probably used most efficient if it is well suited for a specific task. • For example • Business applications are often written in COBOL. • Beginners to programming use BASIC. • Scientific programming is often undertaken with either FORTON, PASCAL or C.
  • 19. CSC141 Introduction to Computer Programming Language Evaluation Criteria • Readability: measure programmer ease in reading source code • Orthogonality: include context sensitive restrictions. • Applicability: this is best suited as “use the right tool for the job” • Writ ability: includes simplicity and orthogonality and support for the abstraction • Reliability: include type checking and inspection handling • Cost: includes learning and writing cost, productivity, compilation cost, execution cost, debugging cost etc. • Other: flexibility of control statements and availability of data structures
  • 20. CSC141 Introduction to Computer Programming History of C Language • A general-purpose computer programming language. • Developed between 1969 and 1973 by Dennis Ritchie at • • • • • the Bell Telephone Laboratories for use with the UNIX operating system. Descendant of Ken Thompson’s language “B” The first C programming language standard was published in 1978 as “The C Programming Language” by Kernighan and Ritchie (K&R). "ANSI C" was the second C programming language standard published in 1989. ISO approved “ANSI C” in 1990. The latest stable release is C11.