SlideShare a Scribd company logo
Information & Communication
Technology (ICT)
Software Design and Algorithm
DIT Part 1
Lecture 11
Copyrights By Tanveer Malik
Computer Programming Languages
• 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.
Copyrights By Tanveer Malik
Computer Programming Languages
• Programming languages are used to facilitate communication
about the task of organizing and manipulating information,
and to express algorithms precisely.
• For 50 years, computer programmers have been writing code.
New technologies continue to emerge, develop, and mature
at a rapid pace. Now there are more than 2,500 documented
programming languages!
Copyrights By Tanveer Malik
Non-computational languages
• 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.
Copyrights By Tanveer Malik
Machine language
• It is the lowest-level programming language.
Machine languages are the only languages
understood by computers.
Copyrights By Tanveer Malik
Machine language
• While easily understood by computers, machine languages
are almost impossible for humans to use because they consist
entirely of numbers.
For example:
• An x86/IA-32 processor can execute the following binary
instruction as expressed in machine language:
Binary: 10110000 01100001 (Hexadecimal: 0xb061)
Copyrights By Tanveer Malik
Assembly Level Language
• An assembly language is a low-level language for
programming computers.
• The word "low" does not imply that the language is inferior to
high-level programming languages but rather refers to the
small or nonexistent amount of abstraction between the
language and machine language, because of this, low-level
languages are sometimes described as being "close to the
hardware."
• It implements a symbolic representation of the numeric
machine codes and other constants needed to program a
particular CPU architecture.
Copyrights By Tanveer Malik
High-level language
• High-level languages are relatively easy to learn because the
instructions bear a close resemblance to everyday language,
and because the programmer does not require a detailed
knowledge of the internal workings of the computer.
• Each instruction in a high-level language is equivalent to
several machine-code instructions, therefore it is more
compact than equivalent low-level programs.
• High-level languages are used to solve problems and are often
described as problem-oriented languages
Copyrights By Tanveer Malik
High-level language
Examples of HLL:
• BASIC was designed to be easily learnt by first-time programmers;
• COBOL is used to write programs solving business problems;
• FORTRAN is used for programs solving scientific and mathematical
problems.
• With the increasing popularity of windows-based systems, the next
generation of programming languages was designed to facilitate the
development of GUI interfaces;
for example, Visual Basic wraps the BASIC language in a graphical
programming environment.
• Support for object-oriented programming has also become more
common, for example in C++ and Java.
Copyrights By Tanveer Malik
Example (C program to add 2
numbers):
#include<stdio.h> //header files
Void main()
{
int a, b, c; // declaration of 3 variables
printf(“Enter two numbers:n”);
Scanf(“%d”, &a); // read 1st number
Scanf(“%d”, &b); // read 2nd number
c=a+b; // compute the sum
printf(“Sum of 2 numbers is %d”, c); //print sum
}
Copyrights By Tanveer Malik
Assignment
– Types of Programming Languages.
Lecture 11

More Related Content

What's hot

Computer language
Computer languageComputer language
Computer language
Mazharul Sabbir
 
classification of computer language
classification of computer languageclassification of computer language
classification of computer language
BinamraRegmi
 
D turner power_pointpres
D turner power_pointpresD turner power_pointpres
D turner power_pointpresdavid114811
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer language
Swarnima Tiwari
 
Computer languages
Computer languagesComputer languages
Computer languages
ABHINAV SINGH
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
educationfront
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
Aditya Sheoran
 
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
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
Juhi Bhoyar
 
Lecture1
Lecture1Lecture1
Lecture1
Pagal Bacha
 
Programming fundamentals presentation
Programming fundamentals presentationProgramming fundamentals presentation
Programming fundamentals presentation
HafsaRao1
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppthashgeneration
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
Anshumali Singh
 
Ppl 13 july2019
Ppl 13 july2019Ppl 13 july2019
Ppl 13 july2019
Khurram Tehseen
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
samina khan
 
Computer programming
Computer programmingComputer programming
Computer programming
wesleycatcher
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
The University of Lahore
 
Computer language
Computer languageComputer language
Computer language
PalakGupta171
 

What's hot (20)

Computer language
Computer languageComputer language
Computer language
 
classification of computer language
classification of computer languageclassification of computer language
classification of computer language
 
D turner power_pointpres
D turner power_pointpresD turner power_pointpres
D turner power_pointpres
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer language
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Computer Languages.
Computer Languages.Computer Languages.
Computer Languages.
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Lecture1
Lecture1Lecture1
Lecture1
 
Programming fundamentals presentation
Programming fundamentals presentationProgramming fundamentals presentation
Programming fundamentals presentation
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppt
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Ppl 13 july2019
Ppl 13 july2019Ppl 13 july2019
Ppl 13 july2019
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Computer language
Computer languageComputer language
Computer language
 

Similar to Lecture 11

Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
DarianElmyra
 
Computer languages
Computer languagesComputer languages
Computer languages
AqdasNoor
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
SegezzBrian
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
VanessaBuensalida
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there study
samiullahamjad06
 
Computer languages
Computer languagesComputer languages
Computer languages
BESOR ACADEMY
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
NaqashAhmad14
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
Munawar Bukhari
 
Computer languages
Computer languagesComputer languages
Computer languages
Buxoo Abdullah
 
Computer language 6th standard 201 .pptx
Computer language 6th standard 201 .pptxComputer language 6th standard 201 .pptx
Computer language 6th standard 201 .pptx
pothiwalajewel
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGES
NoorHameed6
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
crAmth
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
Keval Goyani
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
animewatcher7
 
Programming Language
Programming LanguageProgramming Language
Programming Language
Madhushree Shettigar
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptx
MahamaHaruna
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 
Language processors
Language processorsLanguage processors
Language processors
Dr. B T Sampath Kumar
 

Similar to Lecture 11 (20)

Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
Lec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there studyLec21&22.pptx programing language and there study
Lec21&22.pptx programing language and there study
 
Computer languages
Computer languagesComputer languages
Computer languages
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Computer language 6th standard 201 .pptx
Computer language 6th standard 201 .pptxComputer language 6th standard 201 .pptx
Computer language 6th standard 201 .pptx
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGES
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Introduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptxIntroduction Programming and Application Lecture 1.pptx
Introduction Programming and Application Lecture 1.pptx
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Language processors
Language processorsLanguage processors
Language processors
 

More from Tanveer Malik

Lecture 12 security policy
Lecture 12 security policyLecture 12 security policy
Lecture 12 security policy
Tanveer Malik
 
Lecture 11 active directory
Lecture 11 active directoryLecture 11 active directory
Lecture 11 active directory
Tanveer Malik
 
Lecture 10 i pv4 &amp; ipv6
Lecture 10 i pv4 &amp; ipv6Lecture 10 i pv4 &amp; ipv6
Lecture 10 i pv4 &amp; ipv6
Tanveer Malik
 
Lecture 9 file system
Lecture 9 file systemLecture 9 file system
Lecture 9 file system
Tanveer Malik
 
Lecture 8 disk management
Lecture 8 disk managementLecture 8 disk management
Lecture 8 disk management
Tanveer Malik
 
Lecture 6 internet services in network
Lecture 6 internet services in networkLecture 6 internet services in network
Lecture 6 internet services in network
Tanveer Malik
 
Lecture 5 software to control network
Lecture 5 software to control networkLecture 5 software to control network
Lecture 5 software to control network
Tanveer Malik
 
Lecture 4 sharing of resources on network
Lecture 4 sharing of resources on networkLecture 4 sharing of resources on network
Lecture 4 sharing of resources on network
Tanveer Malik
 
Lecture 3 transmission media
Lecture 3 transmission mediaLecture 3 transmission media
Lecture 3 transmission media
Tanveer Malik
 
Lecture 2 protocol details
Lecture 2 protocol detailsLecture 2 protocol details
Lecture 2 protocol details
Tanveer Malik
 
Lecture 1 networking types roles
Lecture 1 networking types rolesLecture 1 networking types roles
Lecture 1 networking types roles
Tanveer Malik
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
Tanveer Malik
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
Tanveer Malik
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
Tanveer Malik
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
Tanveer Malik
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
Tanveer Malik
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
Tanveer Malik
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
Tanveer Malik
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
Tanveer Malik
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
Tanveer Malik
 

More from Tanveer Malik (20)

Lecture 12 security policy
Lecture 12 security policyLecture 12 security policy
Lecture 12 security policy
 
Lecture 11 active directory
Lecture 11 active directoryLecture 11 active directory
Lecture 11 active directory
 
Lecture 10 i pv4 &amp; ipv6
Lecture 10 i pv4 &amp; ipv6Lecture 10 i pv4 &amp; ipv6
Lecture 10 i pv4 &amp; ipv6
 
Lecture 9 file system
Lecture 9 file systemLecture 9 file system
Lecture 9 file system
 
Lecture 8 disk management
Lecture 8 disk managementLecture 8 disk management
Lecture 8 disk management
 
Lecture 6 internet services in network
Lecture 6 internet services in networkLecture 6 internet services in network
Lecture 6 internet services in network
 
Lecture 5 software to control network
Lecture 5 software to control networkLecture 5 software to control network
Lecture 5 software to control network
 
Lecture 4 sharing of resources on network
Lecture 4 sharing of resources on networkLecture 4 sharing of resources on network
Lecture 4 sharing of resources on network
 
Lecture 3 transmission media
Lecture 3 transmission mediaLecture 3 transmission media
Lecture 3 transmission media
 
Lecture 2 protocol details
Lecture 2 protocol detailsLecture 2 protocol details
Lecture 2 protocol details
 
Lecture 1 networking types roles
Lecture 1 networking types rolesLecture 1 networking types roles
Lecture 1 networking types roles
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 

Recently uploaded

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 

Recently uploaded (20)

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 

Lecture 11

  • 1. Information & Communication Technology (ICT) Software Design and Algorithm DIT Part 1 Lecture 11 Copyrights By Tanveer Malik
  • 2. Computer Programming Languages • 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. Copyrights By Tanveer Malik
  • 3. Computer Programming Languages • Programming languages are used to facilitate communication about the task of organizing and manipulating information, and to express algorithms precisely. • For 50 years, computer programmers have been writing code. New technologies continue to emerge, develop, and mature at a rapid pace. Now there are more than 2,500 documented programming languages! Copyrights By Tanveer Malik
  • 4. Non-computational languages • 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. Copyrights By Tanveer Malik
  • 5. Machine language • It is the lowest-level programming language. Machine languages are the only languages understood by computers. Copyrights By Tanveer Malik
  • 6. Machine language • While easily understood by computers, machine languages are almost impossible for humans to use because they consist entirely of numbers. For example: • An x86/IA-32 processor can execute the following binary instruction as expressed in machine language: Binary: 10110000 01100001 (Hexadecimal: 0xb061) Copyrights By Tanveer Malik
  • 7. Assembly Level Language • An assembly language is a low-level language for programming computers. • The word "low" does not imply that the language is inferior to high-level programming languages but rather refers to the small or nonexistent amount of abstraction between the language and machine language, because of this, low-level languages are sometimes described as being "close to the hardware." • It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture. Copyrights By Tanveer Malik
  • 8. High-level language • High-level languages are relatively easy to learn because the instructions bear a close resemblance to everyday language, and because the programmer does not require a detailed knowledge of the internal workings of the computer. • Each instruction in a high-level language is equivalent to several machine-code instructions, therefore it is more compact than equivalent low-level programs. • High-level languages are used to solve problems and are often described as problem-oriented languages Copyrights By Tanveer Malik
  • 9. High-level language Examples of HLL: • BASIC was designed to be easily learnt by first-time programmers; • COBOL is used to write programs solving business problems; • FORTRAN is used for programs solving scientific and mathematical problems. • With the increasing popularity of windows-based systems, the next generation of programming languages was designed to facilitate the development of GUI interfaces; for example, Visual Basic wraps the BASIC language in a graphical programming environment. • Support for object-oriented programming has also become more common, for example in C++ and Java. Copyrights By Tanveer Malik
  • 10. Example (C program to add 2 numbers): #include<stdio.h> //header files Void main() { int a, b, c; // declaration of 3 variables printf(“Enter two numbers:n”); Scanf(“%d”, &a); // read 1st number Scanf(“%d”, &b); // read 2nd number c=a+b; // compute the sum printf(“Sum of 2 numbers is %d”, c); //print sum } Copyrights By Tanveer Malik
  • 11. Assignment – Types of Programming Languages.