SlideShare a Scribd company logo
1 of 10
INTRODUCTION TOCOMPUTER SCIENCE
CSC 1302
LECTURE 4
Department of Maths and Computer-
Science
Faculty of Natural and Applied Science
BY
UMAR DANJUMA MAIWADA
PROGRAMMING
 Programming is all about designing and coding
algorithm for solving problems.
 Computers are not very intelligent, the instruction they
receive must be extraordinary special.
 We write computer instructions in programming
languages, which are more constrained and exact than
human languages are.
 It must follow a series of algorithm.
2
MACHINE LANGUAGES
 Instructions written in these language
correspond directly to the hardware
operations of a particular machine.
 It deals directly with the computers physical
component.
 They are represented in binary.
3
ASSEMBLY LANGUAGE
 It allows the use of words rather than binary
number.
 The words corresponds to operations performed by
the computers physical components.
4
HIGH LEVEL LANGUAGE
 It is use to solve complex problems which is quick
and reliable and it relates to the way human thinks.
 It provides natural frame work through which problem
is solved.
 It include abstraction
5
INTERPRETERS AND COMPILERS
 The interpretation approach relies on a program
known as an interpreter to translate and execute
the statement in high level language program.
 Interpreter reads the statement one at a time,
translating and executing each statement before
processing the next one.
 Compilation approach relies on a program known
as a compiler to translate the entire high level
language program into its equivalent machine
language instructions.
6
THE DIFFERENCE BETWEEN COMPILER AND
INTERPRETER
 Compilation is more faster than translation because
compilation is done once and for all, the interpreter
and the source code are needed every time the
program runs
 Compilation is a one shot translation, once a
program is compiled, it may be run over and over
again without further need for the compiler or the
source code.
7
EXAMPLE OF PROGRAMMING LANGUAGES
 JAVA
 Python
 C++
 C
 Pascal
 COBOL (common business oriented language)
 FORTRAN (formula translator)
Good programming practices
•Your code may be used by somebody else
•The code may be long
•Should be easy to understand for you and for others
•Saves lot of errors and makes debugging easier
•Speeds up program development
9
QUESTIONS???
THANK YOU FOR YOUR ATTENTION
10

More Related Content

What's hot

Presentation on Basic Computer
Presentation on Basic ComputerPresentation on Basic Computer
Presentation on Basic Computerrimplebaggan
 
Elements of Computer
Elements  of ComputerElements  of Computer
Elements of ComputerLUZ PINGOL
 
Lab 1 Introduction to Computer
Lab 1   Introduction to ComputerLab 1   Introduction to Computer
Lab 1 Introduction to ComputerHalimaton Sa'adiah
 
Classification of computer
Classification of computerClassification of computer
Classification of computerVicky Maliks
 
Lesson 4.0 elements of computer and communication system
Lesson 4.0   elements of computer and communication systemLesson 4.0   elements of computer and communication system
Lesson 4.0 elements of computer and communication systemJoshua Hernandez
 
Basic Computer Training Institute in Ambala ! Batra Computer Centre.
Basic Computer Training Institute in Ambala ! Batra Computer Centre. Basic Computer Training Institute in Ambala ! Batra Computer Centre.
Basic Computer Training Institute in Ambala ! Batra Computer Centre. ajayskumars
 
Computer fundamental
Computer fundamentalComputer fundamental
Computer fundamentalAnkit Sand
 
Basic computer information
Basic computer informationBasic computer information
Basic computer informationsupriya jamadade
 
Hardware software
Hardware softwareHardware software
Hardware softwareMohit Saini
 
Unit 1 computer programming
Unit 1 computer programmingUnit 1 computer programming
Unit 1 computer programmingkirthika jeyenth
 
Fundamental of computer
Fundamental of computerFundamental of computer
Fundamental of computerstudent
 
Classification of computer 2
Classification of computer 2Classification of computer 2
Classification of computer 2tio_arkarna
 

What's hot (18)

Computer Fundamental
Computer FundamentalComputer Fundamental
Computer Fundamental
 
Computer Overview
Computer OverviewComputer Overview
Computer Overview
 
Presentation on Basic Computer
Presentation on Basic ComputerPresentation on Basic Computer
Presentation on Basic Computer
 
Elements of Computer
Elements  of ComputerElements  of Computer
Elements of Computer
 
Lab 1 Introduction to Computer
Lab 1   Introduction to ComputerLab 1   Introduction to Computer
Lab 1 Introduction to Computer
 
Classification of computer
Classification of computerClassification of computer
Classification of computer
 
Lesson 4.0 elements of computer and communication system
Lesson 4.0   elements of computer and communication systemLesson 4.0   elements of computer and communication system
Lesson 4.0 elements of computer and communication system
 
computer
computercomputer
computer
 
Basic Computer Training Institute in Ambala ! Batra Computer Centre.
Basic Computer Training Institute in Ambala ! Batra Computer Centre. Basic Computer Training Institute in Ambala ! Batra Computer Centre.
Basic Computer Training Institute in Ambala ! Batra Computer Centre.
 
Computer fundamental
Computer fundamentalComputer fundamental
Computer fundamental
 
Basic computer information
Basic computer informationBasic computer information
Basic computer information
 
Classification 10
Classification 10Classification 10
Classification 10
 
Hardware software
Hardware softwareHardware software
Hardware software
 
Types of Computers
Types of ComputersTypes of Computers
Types of Computers
 
Computer
ComputerComputer
Computer
 
Unit 1 computer programming
Unit 1 computer programmingUnit 1 computer programming
Unit 1 computer programming
 
Fundamental of computer
Fundamental of computerFundamental of computer
Fundamental of computer
 
Classification of computer 2
Classification of computer 2Classification of computer 2
Classification of computer 2
 

Similar to Introduction to Computer Science Lecture on Programming, Languages, Compilers and Interpreters

Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming language
Programming languageProgramming language
Programming languageShuja Qais
 
Comso c++
Comso c++Comso c++
Comso c++Mi L
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingGwyneth Calica
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdfRakibRahman19
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)Maliha Jahan
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming VanessaBuensalida
 
computer languages
computer languagescomputer languages
computer languagesYasirali328
 
Form5 cd1
Form5 cd1Form5 cd1
Form5 cd1smktsj2
 
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.pptxMahamaHaruna
 

Similar to Introduction to Computer Science Lecture on Programming, Languages, Compilers and Interpreters (20)

Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Programming language
Programming languageProgramming language
Programming language
 
Programming Part 01
Programming Part 01Programming Part 01
Programming Part 01
 
Comso c++
Comso c++Comso c++
Comso c++
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Notacd07
Notacd07Notacd07
Notacd07
 
Nota programming
Nota programmingNota programming
Nota programming
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Notacd071
Notacd071Notacd071
Notacd071
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)
 
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
 
computer languages
computer languagescomputer languages
computer languages
 
Form5 cd1
Form5 cd1Form5 cd1
Form5 cd1
 
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
 
Computer language
Computer languageComputer language
Computer language
 

More from umardanjumamaiwada (20)

Seminar Information Protection & Computer Security (Cryptography).pptx
Seminar Information Protection & Computer Security  (Cryptography).pptxSeminar Information Protection & Computer Security  (Cryptography).pptx
Seminar Information Protection & Computer Security (Cryptography).pptx
 
Oop using JAVA
Oop using JAVAOop using JAVA
Oop using JAVA
 
C++
C++ C++
C++
 
Computer hardware
Computer hardware Computer hardware
Computer hardware
 
2javascript web programming with JAVA script
2javascript web programming with JAVA script2javascript web programming with JAVA script
2javascript web programming with JAVA script
 
1 web programming
1 web programming1 web programming
1 web programming
 
0 csc 3311 slide internet programming
0 csc 3311 slide internet programming0 csc 3311 slide internet programming
0 csc 3311 slide internet programming
 
0 lecture 6 wp wireless protocol
0 lecture 6 wp wireless protocol0 lecture 6 wp wireless protocol
0 lecture 6 wp wireless protocol
 
0 lecture 5 wp wireless protocol
0 lecture 5 wp wireless protocol0 lecture 5 wp wireless protocol
0 lecture 5 wp wireless protocol
 
0 lecture 4 wp wireless protocol
0 lecture 4 wp wireless protocol0 lecture 4 wp wireless protocol
0 lecture 4 wp wireless protocol
 
0 lecture 3 wp wireless protocol
0 lecture 3 wp wireless protocol0 lecture 3 wp wireless protocol
0 lecture 3 wp wireless protocol
 
0 lecture 2 wp wireless protocol
0 lecture 2 wp wireless protocol0 lecture 2 wp wireless protocol
0 lecture 2 wp wireless protocol
 
0 lecture 1 wp wireless protocol
0 lecture 1 wp wireless protocol0 lecture 1 wp wireless protocol
0 lecture 1 wp wireless protocol
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
lecture 4
 lecture 4 lecture 4
lecture 4
 
lecture 3
 lecture 3  lecture 3
lecture 3
 
lecture 2
 lecture 2 lecture 2
lecture 2
 
lecture 1
 lecture 1 lecture 1
lecture 1
 
lecture 6
 lecture 6 lecture 6
lecture 6
 
lecture 5
 lecture 5 lecture 5
lecture 5
 

Recently uploaded

Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsHajira Mahmood
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxJorenAcuavera1
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationColumbia Weather Systems
 
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptArshadWarsi13
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayupadhyaymani499
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxBerniceCayabyab1
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 

Recently uploaded (20)

Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutions
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptx
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather Station
 
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort ServiceHot Sexy call girls in  Moti Nagar,🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Moti Nagar,🔝 9953056974 🔝 escort Service
 
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.ppt
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyay
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 

Introduction to Computer Science Lecture on Programming, Languages, Compilers and Interpreters

  • 1. INTRODUCTION TOCOMPUTER SCIENCE CSC 1302 LECTURE 4 Department of Maths and Computer- Science Faculty of Natural and Applied Science BY UMAR DANJUMA MAIWADA
  • 2. PROGRAMMING  Programming is all about designing and coding algorithm for solving problems.  Computers are not very intelligent, the instruction they receive must be extraordinary special.  We write computer instructions in programming languages, which are more constrained and exact than human languages are.  It must follow a series of algorithm. 2
  • 3. MACHINE LANGUAGES  Instructions written in these language correspond directly to the hardware operations of a particular machine.  It deals directly with the computers physical component.  They are represented in binary. 3
  • 4. ASSEMBLY LANGUAGE  It allows the use of words rather than binary number.  The words corresponds to operations performed by the computers physical components. 4
  • 5. HIGH LEVEL LANGUAGE  It is use to solve complex problems which is quick and reliable and it relates to the way human thinks.  It provides natural frame work through which problem is solved.  It include abstraction 5
  • 6. INTERPRETERS AND COMPILERS  The interpretation approach relies on a program known as an interpreter to translate and execute the statement in high level language program.  Interpreter reads the statement one at a time, translating and executing each statement before processing the next one.  Compilation approach relies on a program known as a compiler to translate the entire high level language program into its equivalent machine language instructions. 6
  • 7. THE DIFFERENCE BETWEEN COMPILER AND INTERPRETER  Compilation is more faster than translation because compilation is done once and for all, the interpreter and the source code are needed every time the program runs  Compilation is a one shot translation, once a program is compiled, it may be run over and over again without further need for the compiler or the source code. 7
  • 8. EXAMPLE OF PROGRAMMING LANGUAGES  JAVA  Python  C++  C  Pascal  COBOL (common business oriented language)  FORTRAN (formula translator)
  • 9. Good programming practices •Your code may be used by somebody else •The code may be long •Should be easy to understand for you and for others •Saves lot of errors and makes debugging easier •Speeds up program development 9
  • 10. QUESTIONS??? THANK YOU FOR YOUR ATTENTION 10

Editor's Notes

  1. Scalability of handover framework to handle increased handovers without compromising latency performance Flexibility to support various 4G deployments