SlideShare a Scribd company logo
1 of 15
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 & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Programming languages
Programming languagesProgramming languages
Programming languagesgaurav jain
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programmingMukesh Tekwani
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxdawod 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 compilersAftab Ahmad
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptxSamiAAli44
 
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 AnsariTech
 
Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Introduction to Computers Lecture # 12
Introduction to Computers Lecture # 12Sehrish Rafiq
 
Programming languages
Programming languages Programming languages
Programming languages sushma chinta
 

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

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 

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?