SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
Lecture no : 6
Introduction to Computer/ Computer
Education
Mr. Muhammad Moazzam
MPhil Public Health
BSc BioMedical
University of the Lahore
Content
• Languages in computer
LANGUAGE
Human Language:
Commonly used to express Feeing
and understand other person
expression. It can be oral or
gestural kind of Communication.
DEFINITION OF COMPUTER
LANGUAGES
A computer languages are the languages by
which a user command a computer to work on
the algorithm which a user has written to get
an output.
TWO TYPES OF COMPUTER
LANGUAGES
• Low-level languages
• High-level languages
Lower Level Language
A low-level programming language is a programming language
that provides little or no abstraction from a computer's
instruction set architecture. It consists of numeric codes i.e 0 &
1. These codes are easily understandable to computer but
difficult to human. A lower level language is used in two
generations of computer.
•first generation
•second generation
First generation languages or 1GL
Represent the very early, primitive
computer languages that consisted
entirely of 1's and 0's - the actual
language that the computer
understands (machine language).
Second generation languages (2GL)
Represent a step up from the first
generation languages. Allow for
the use of symbolic names
instead of just numbers. Second
generation languages are known
as assembly languages. Code
written in an assembly language
is converted into machine
language (1GL).
CHARACTERSTICS OF
LOW LEVEL
LANGUAGES
• Direct memory management
• Little-to-no abstraction from the hardware
• Register access
• Statements usually have an obvious
correspondence with clock cycles
• Superb performance
Advantages
•Computational Speed is very fast.
•Directly understandable by computer.
Disadvantages
•Development of a program in machine language is very
time consuming
•Error correction is tedious process
HIGH LEVEL LANGUAGES
• High-level programming languages allow the
specification of a problem solution in terms closer to
those used by human beings.
• These languages were designed to make
programming far easier, less error- prone and to
remove the programmer from having to know the
details of the internal structure of a particular
computer. This language is used in third generation.
Third generation languages (3GL)
With the languages introduced by the
third generation of computer
programming, words and commands
(instead of just symbols and
numbers) were being used. These
languages therefore, had syntax that
was much easier to understand. Third
generation languages are known as
"high level languages" and include
C, C++, Java, and Javascript, among
others.
TYPES
English words, basic mathematical symbols,
punctuations:
• C,C+,C++
• PASCAL(scientist Pascal)
• Visual Basic
• LISP
• JAVA
C+, PASCAL
Why we have different programing
languages?
Advantages
•These are simple to adopt due to their english like
structure of statements.
•They are easy to maintain and debug.
Disadvantages
•The Program written in high level language are less efficient
as they take more execution time.
•The compiler also consumes some memory as it is required
for the translation process.
 Language translators convert programming source code into
language that the computer processor understands.
 Programming source code has various structures and
commands, but the computer processors understand only
machine language.
 Language translators are of three types: -
CompilerAssembler Interpreter
 A computer program that translates source code into object
code.
 Source code : - High-level language version of the program.
 Object code: -The resulting machine code program.
 Primary reason for compiling source code is to create an
executable program.
 It checks all kinds of limits, ranges, errors etc. before executing
it completely but the disadvantage is that when an error in a
program occurs it is difficult to pin-point its source in the
original program
Source Code
• High-
level
Language
• Like C,
C++, Java
etc.
Compiler
• It looks at the
entire piece /
program of
source code
collecting &
reorganizing
instructions.
Object Code
• Machine
Language
program.
• Eg: -
0101010
Error
Messages
 An interpreter is closely related to a compiler, but takes both
source program and input data.
 The basic purpose of interpreter is same as that of complier
but it can’t create a executable file like compiler.
Source Code
• High Level
Languages
Interpreter
• Translation
by line to
line
Object Code
• Machine
Language
 In compiler, the program is translated completely and directly
executable version is generated. Whereas interpreter translates
each instruction, executes it and then the next instruction is
translated and this goes on until end of the program.
 It is also called as LINE INTERPRETER because it is
interpreted line by line, it is a much slower way of running a
program than one that has been compiled but is easier for
learners because the program can be stopped, modified and
rerun without time-consuming compiles.
 Interpreters however are easier to use, particularly for
beginners, since errors are immediately displayed, corrected by
the user, until the program is able to be executed
• Assembly
Language
• perform
isomorphic
(one to one
mapping)
translation
 Assembler is software or a tool that translates Assembly
language to machine code.
 Assembly is a human readable language but it typically has a
one to one relationship with the corresponding machine code.
Therefore an assembler is said to perform isomorphic (one to
one mapping) translation.
Source Code Assembler Object Code
• Machine
Language
 The translation process has two major parts.
 FIRST STEP : - To find memory locations with labels so the
relationship between symbolic names and addresses is
known when instructions are translated.
 SECOND STEP :- To translate each assembly statement by
combining the numeric equivalents of opcodes, register
specifier’s, and labels into a legal instruction
 Assembler checks each instruction for it’s correctness and
generates diagnostic message, if there are mistakes in the
program.
 Assembler directives (or pseudo instructions) provide
instructions to the assembler itself . They are not translated
into machine instructions. (e.g.: - START, ADD, SUB etc.)
Languages in computer
Languages in computer

Contenu connexe

Tendances

Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...SHUBHAM PATIDAR FISHERIES ADDAA
 
Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / TranslatorsProject Student
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clSaumya Sahu
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languagessamina khan
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languagesluckas chauhan
 
Machine language
Machine languageMachine language
Machine languageRipal Dhruv
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpretersRAJU KATHI
 

Tendances (20)

Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
 
Programming Languages / Translators
Programming Languages / TranslatorsProgramming Languages / Translators
Programming Languages / Translators
 
Computer Programming - Lecture 1
Computer Programming - Lecture 1Computer Programming - Lecture 1
Computer Programming - Lecture 1
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 cl
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Computer languages 11
Computer languages 11Computer languages 11
Computer languages 11
 
Computer Languages
Computer Languages Computer Languages
Computer Languages
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
Lecture1
Lecture1Lecture1
Lecture1
 
Introduction to programming languages
Introduction to programming languagesIntroduction to programming languages
Introduction to programming languages
 
Interpreter
InterpreterInterpreter
Interpreter
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languages
 
Machine language
Machine languageMachine language
Machine language
 
computer languages
computer languagescomputer languages
computer languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpreters
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 

Similaire à Languages in computer

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 studysamiullahamjad06
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generationMunawar Bukhari
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)Suneel Dogra
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computerKeval Goyani
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESNoorHameed6
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming VanessaBuensalida
 

Similaire à Languages in computer (20)

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
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
 
Ic lecture8
Ic lecture8 Ic lecture8
Ic lecture8
 
Computer language
Computer languageComputer language
Computer language
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Language processors
Language processorsLanguage processors
Language processors
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
Algorithm and flowchart(1)
Algorithm and flowchart(1)Algorithm and flowchart(1)
Algorithm and flowchart(1)
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
C_NOTES.pdf
C_NOTES.pdfC_NOTES.pdf
C_NOTES.pdf
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGES
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 

Plus de The University of Lahore

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...The University of Lahore
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...The University of Lahore
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output DevicesThe University of Lahore
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input DevicesThe University of Lahore
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of ComputerThe University of Lahore
 

Plus de The University of Lahore (17)

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Numbering System Base Conversion
Numbering System Base ConversionNumbering System Base Conversion
Numbering System Base Conversion
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices
 
Components of Computer System
Components of Computer SystemComponents of Computer System
Components of Computer System
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Types of Computer
Types of Computer Types of Computer
Types of Computer
 
Generations of Computer
Generations of Computer Generations of Computer
Generations of Computer
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of Computer
 
Rehabilitation Engineering
Rehabilitation Engineering Rehabilitation Engineering
Rehabilitation Engineering
 
Introduction to rehabilitation
Introduction to rehabilitationIntroduction to rehabilitation
Introduction to rehabilitation
 
2. levels of prevention
2. levels of prevention2. levels of prevention
2. levels of prevention
 
definitions of health& concept of disease
definitions of health& concept of diseasedefinitions of health& concept of disease
definitions of health& concept of disease
 

Dernier

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Dernier (20)

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 

Languages in computer

  • 1. Lecture no : 6 Introduction to Computer/ Computer Education Mr. Muhammad Moazzam MPhil Public Health BSc BioMedical University of the Lahore
  • 3. LANGUAGE Human Language: Commonly used to express Feeing and understand other person expression. It can be oral or gestural kind of Communication.
  • 4. DEFINITION OF COMPUTER LANGUAGES A computer languages are the languages by which a user command a computer to work on the algorithm which a user has written to get an output. TWO TYPES OF COMPUTER LANGUAGES • Low-level languages • High-level languages
  • 5. Lower Level Language A low-level programming language is a programming language that provides little or no abstraction from a computer's instruction set architecture. It consists of numeric codes i.e 0 & 1. These codes are easily understandable to computer but difficult to human. A lower level language is used in two generations of computer. •first generation •second generation
  • 6. First generation languages or 1GL Represent the very early, primitive computer languages that consisted entirely of 1's and 0's - the actual language that the computer understands (machine language).
  • 7. Second generation languages (2GL) Represent a step up from the first generation languages. Allow for the use of symbolic names instead of just numbers. Second generation languages are known as assembly languages. Code written in an assembly language is converted into machine language (1GL).
  • 8. CHARACTERSTICS OF LOW LEVEL LANGUAGES • Direct memory management • Little-to-no abstraction from the hardware • Register access • Statements usually have an obvious correspondence with clock cycles • Superb performance
  • 9. Advantages •Computational Speed is very fast. •Directly understandable by computer. Disadvantages •Development of a program in machine language is very time consuming •Error correction is tedious process
  • 10. HIGH LEVEL LANGUAGES • High-level programming languages allow the specification of a problem solution in terms closer to those used by human beings. • These languages were designed to make programming far easier, less error- prone and to remove the programmer from having to know the details of the internal structure of a particular computer. This language is used in third generation.
  • 11. Third generation languages (3GL) With the languages introduced by the third generation of computer programming, words and commands (instead of just symbols and numbers) were being used. These languages therefore, had syntax that was much easier to understand. Third generation languages are known as "high level languages" and include C, C++, Java, and Javascript, among others.
  • 12. TYPES English words, basic mathematical symbols, punctuations: • C,C+,C++ • PASCAL(scientist Pascal) • Visual Basic • LISP • JAVA
  • 14. Why we have different programing languages?
  • 15. Advantages •These are simple to adopt due to their english like structure of statements. •They are easy to maintain and debug. Disadvantages •The Program written in high level language are less efficient as they take more execution time. •The compiler also consumes some memory as it is required for the translation process.
  • 16.
  • 17.  Language translators convert programming source code into language that the computer processor understands.  Programming source code has various structures and commands, but the computer processors understand only machine language.  Language translators are of three types: - CompilerAssembler Interpreter
  • 18.  A computer program that translates source code into object code.  Source code : - High-level language version of the program.  Object code: -The resulting machine code program.  Primary reason for compiling source code is to create an executable program.  It checks all kinds of limits, ranges, errors etc. before executing it completely but the disadvantage is that when an error in a program occurs it is difficult to pin-point its source in the original program
  • 19. Source Code • High- level Language • Like C, C++, Java etc. Compiler • It looks at the entire piece / program of source code collecting & reorganizing instructions. Object Code • Machine Language program. • Eg: - 0101010 Error Messages
  • 20.  An interpreter is closely related to a compiler, but takes both source program and input data.  The basic purpose of interpreter is same as that of complier but it can’t create a executable file like compiler. Source Code • High Level Languages Interpreter • Translation by line to line Object Code • Machine Language
  • 21.  In compiler, the program is translated completely and directly executable version is generated. Whereas interpreter translates each instruction, executes it and then the next instruction is translated and this goes on until end of the program.  It is also called as LINE INTERPRETER because it is interpreted line by line, it is a much slower way of running a program than one that has been compiled but is easier for learners because the program can be stopped, modified and rerun without time-consuming compiles.  Interpreters however are easier to use, particularly for beginners, since errors are immediately displayed, corrected by the user, until the program is able to be executed
  • 22. • Assembly Language • perform isomorphic (one to one mapping) translation  Assembler is software or a tool that translates Assembly language to machine code.  Assembly is a human readable language but it typically has a one to one relationship with the corresponding machine code. Therefore an assembler is said to perform isomorphic (one to one mapping) translation. Source Code Assembler Object Code • Machine Language
  • 23.  The translation process has two major parts.  FIRST STEP : - To find memory locations with labels so the relationship between symbolic names and addresses is known when instructions are translated.  SECOND STEP :- To translate each assembly statement by combining the numeric equivalents of opcodes, register specifier’s, and labels into a legal instruction  Assembler checks each instruction for it’s correctness and generates diagnostic message, if there are mistakes in the program.  Assembler directives (or pseudo instructions) provide instructions to the assembler itself . They are not translated into machine instructions. (e.g.: - START, ADD, SUB etc.)