SlideShare a Scribd company logo
Overview of Programming
Programming language
 The set of instruction written in a programming
language is called program.
 Two types:
1) Application Program: Program which direct the
computer to solve the problem of user.
eg. Word, excel, games etc
2) System Program: Program which direct the
computer to solve the problem of computer itself.
eg. OS, antivirus software etc
 To communicate with a computer it has to be instructed
to carry out various tasks like: what operations to
perform, how to present results, when and how to make
certain decisions and so on.
 These set of instructions have to be communicated to
the computer through a language called ‘programming
language’.
 Levels of programming language:
1)Machine language(low level)
2)Assembly language
3)Procedure oriented language(high level)
4)Fourth generation language(4GLs)
Programming language(Cont.)
Programming language(Cont.)
Programming language(Cont.)
1)Machine level language
 Computers are made of two-state electronic
components which can understand only pulse and no-
pulse (1 and 0) conditions.
 It consist of string of binary numbers(0 and 1).
 faster program execution
 It is very tedious to understand and remember the
various combinations of 1’s and 0’s representing data
and instructions.
 Every computer has its own machine language, the
programmer can not communicate with other computers
if he does not know its machine language.
2)Assembly language
 It uses mnemonic codes such as ADD for addition, SUB
for subtraction etc.
 Memory locations containing data are given names
such as TOTAL, MARKS, TIME etc.
 Thus, instead of referring a location using its number, it
can be referred using the name given to it.
 A program written in assembly language must be
translated into machine language before it can be
executed. This translation is done by another program
called assembler.
Programming language(Cont.)
 Advantages of assembly language over machine
language:
 It saves programmer’s time.
 Fewer errors are made.
 They are easier to modify than machine language
programs.
Programming language(Cont.)
Programming language(Cont.)
3) Procedure oriented language (High level)
 This language consists of a set of words and symbols
and one can write programs using these in conjunction
with certain pre-specified rules of the language.
 A programming language such as C, FORTRAN,
or Pascal that enables a programmer to
write programs that are independent of a particular type
of computer.
 It is machine independent and a program written in high
level language can be run on different computers with
little or no modification.
 The main advantage of high-level languages over low-
level languages is that they are easier to read, write,
and maintain.
 Ultimately, programs written in a high-level language
must be translated into machine language by a
compiler or interpreter.
 faster program development
 It takes extra time for conversion and thus are less
efficient as compared to machine language programs.
Programming language(Cont.)
Programming language(Cont.)
4) Fourth generation language
 A non-procedural programming language that requires
less coding than lower-level languages.
 Eg. Command-line languages, database management
systems (DBMSs). Prolog, an artificial
intelligence language that applies rules to data to
arrive at solutions
Language translators
 Compiler: It checks the entire program and if error free,
produces a complete program in machine
language(object code).Then object code is loaded in
memory for execution.
 Interpreter: which analyzes and executes each line of
source code without looking at the entire program.
Compiler Interpreter
It checks whole program at
a stretch.
It checks program one by
one.
It throws all errors in a
program.
It throws errors of a single
line.
It is faster. It is slower.
It is less accurate. It is more accurate.
C, C++ uses it. Java uses it.
Language translators(Cont.)
Errors
 Types:
1)Syntax error:
• It occurs due to poor knowledge of programming
language.
• Eg. you may miss a semicolon or a curly bracket.
2) Logical error:
• it occurs due to poor knowledge of programming
technique.
• A logic error, or bug, is when your program compiles
and runs, but does the wrong thing.
• int average(int a, int b)
{
return a + b / 2; /* should be (a + b) / 2 */
Files generated by compiler
 Sample.c //source code
 Sample.obj //machine language
 Sample.bak //backup file
 Sample.exe //auto executable file
Q & A
1) A machine language program consist of instructions
written in..?
2) An Assembly language program consist of instructions
written in..?
 A)mnemonic
 B)0’s and 1’s
 C)Keywords
 D)English like words
3) Translator that translates the assembly language into
machine language is called..?
4) int a=10, b=0, c;
c=a/b; //syntax error or logical error?

More Related Content

Similar to 1.Overview of Programming.pptx

Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
Gaditek
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
PmarkNorcio
 
Programming languages
Programming languagesProgramming languages
Programming languages
gaurav jain
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
Mukesh Tekwani
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
Arslan Hussain
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
dawod yimer
 
Computer programming
Computer programmingComputer programming
Computer programmingSuneel Dogra
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)Suneel Dogra
 
Lecture1 compilers
Lecture1 compilersLecture1 compilers
Lecture1 compilers
Aftab Ahmad
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
Revathiparamanathan
 
computer Unit 6
computer Unit 6computer Unit 6
computer Unit 6
Aqeel Rehman
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptx
SamiAAli44
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem Ansari
Tech
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
Sehrish Rafiq
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
The University of Lahore
 
Programming languages
Programming languages Programming languages
Programming languages
sushma chinta
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
Christ Association
 

Similar to 1.Overview of Programming.pptx (20)

Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
 
Lecture1 compilers
Lecture1 compilersLecture1 compilers
Lecture1 compilers
 
df
dfdf
df
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
computer Unit 6
computer Unit 6computer Unit 6
computer Unit 6
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptx
 
Introduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem AnsariIntroduction to Programming Concepts By Aamir Saleem Ansari
Introduction to Programming Concepts By Aamir Saleem Ansari
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.pdf
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Programming languages
Programming languages Programming languages
Programming languages
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 

Recently uploaded

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
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
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
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
 
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
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 

Recently uploaded (20)

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
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
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
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
 
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
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 

1.Overview of Programming.pptx

  • 2. Programming language  The set of instruction written in a programming language is called program.  Two types: 1) Application Program: Program which direct the computer to solve the problem of user. eg. Word, excel, games etc 2) System Program: Program which direct the computer to solve the problem of computer itself. eg. OS, antivirus software etc
  • 3.  To communicate with a computer it has to be instructed to carry out various tasks like: what operations to perform, how to present results, when and how to make certain decisions and so on.  These set of instructions have to be communicated to the computer through a language called ‘programming language’.  Levels of programming language: 1)Machine language(low level) 2)Assembly language 3)Procedure oriented language(high level) 4)Fourth generation language(4GLs) Programming language(Cont.)
  • 5. Programming language(Cont.) 1)Machine level language  Computers are made of two-state electronic components which can understand only pulse and no- pulse (1 and 0) conditions.  It consist of string of binary numbers(0 and 1).  faster program execution  It is very tedious to understand and remember the various combinations of 1’s and 0’s representing data and instructions.  Every computer has its own machine language, the programmer can not communicate with other computers if he does not know its machine language.
  • 6. 2)Assembly language  It uses mnemonic codes such as ADD for addition, SUB for subtraction etc.  Memory locations containing data are given names such as TOTAL, MARKS, TIME etc.  Thus, instead of referring a location using its number, it can be referred using the name given to it.  A program written in assembly language must be translated into machine language before it can be executed. This translation is done by another program called assembler. Programming language(Cont.)
  • 7.  Advantages of assembly language over machine language:  It saves programmer’s time.  Fewer errors are made.  They are easier to modify than machine language programs. Programming language(Cont.)
  • 8. Programming language(Cont.) 3) Procedure oriented language (High level)  This language consists of a set of words and symbols and one can write programs using these in conjunction with certain pre-specified rules of the language.  A programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are independent of a particular type of computer.  It is machine independent and a program written in high level language can be run on different computers with little or no modification.  The main advantage of high-level languages over low- level languages is that they are easier to read, write, and maintain.
  • 9.  Ultimately, programs written in a high-level language must be translated into machine language by a compiler or interpreter.  faster program development  It takes extra time for conversion and thus are less efficient as compared to machine language programs. Programming language(Cont.)
  • 10. Programming language(Cont.) 4) Fourth generation language  A non-procedural programming language that requires less coding than lower-level languages.  Eg. Command-line languages, database management systems (DBMSs). Prolog, an artificial intelligence language that applies rules to data to arrive at solutions
  • 11. Language translators  Compiler: It checks the entire program and if error free, produces a complete program in machine language(object code).Then object code is loaded in memory for execution.  Interpreter: which analyzes and executes each line of source code without looking at the entire program.
  • 12. Compiler Interpreter It checks whole program at a stretch. It checks program one by one. It throws all errors in a program. It throws errors of a single line. It is faster. It is slower. It is less accurate. It is more accurate. C, C++ uses it. Java uses it. Language translators(Cont.)
  • 13. Errors  Types: 1)Syntax error: • It occurs due to poor knowledge of programming language. • Eg. you may miss a semicolon or a curly bracket. 2) Logical error: • it occurs due to poor knowledge of programming technique. • A logic error, or bug, is when your program compiles and runs, but does the wrong thing. • int average(int a, int b) { return a + b / 2; /* should be (a + b) / 2 */
  • 14. Files generated by compiler  Sample.c //source code  Sample.obj //machine language  Sample.bak //backup file  Sample.exe //auto executable file
  • 15. Q & A 1) A machine language program consist of instructions written in..? 2) An Assembly language program consist of instructions written in..?  A)mnemonic  B)0’s and 1’s  C)Keywords  D)English like words 3) Translator that translates the assembly language into machine language is called..? 4) int a=10, b=0, c; c=a/b; //syntax error or logical error?