SlideShare uma empresa Scribd logo
1 de 24
Computer Languages
Computer languages

• A computer language is an artificial language
  designed to work for different applications
  in different environments.

• Programming languages can be used to create
  programs that control the behavior of a
  computer and serve any purpose.
• Computer languages have some form of written
  specification of their Syntax (Rules) and
   Semantic (Words, phrase & sentences)
Computer languages

The term programming language usually refers to
high-level languages such as BASIC, C, C++,
COBOL, FORTRAN, Pascal, Java, Oracle, ASP.NET,
VB.NET and C#.

Each language has a unique set of keywords (words that it
understands) and a special syntax for organizing program
instructions.
Computer Languages

    Human languages are known as natural languages.
    Unfortunately, computers can not understand natural
    languages, as a result we must communicate with
    computers using computer languages.
    These languages are;


•   High Level Languages
•   Low Level Languages
•   Assembly Language
•   Machine Language
Architecture
High Level Language


The high-level languages are much closer to human
language.
A programming language such as C, FORTRAN or Pascal
 that enables to write programs which is understandable to
programmer (Human) and can perform any sort of task,
such languages are considered high-level because they are
closer to human languages.

High level language must use interpreter, compiler or
translator to convert human understandable program to
computer readable code (machine code).
Examples:

Many high level languages have appeared since Fortran II
the most widely used have been:

COBOL         Business applications
FORTRAN       Engg & Scientific Applications
PASCAL        General use and as a teaching tool
C & C++       General Purpose - currently
              most popular.
PROLOG        Artificial Intelligence
JAVA          General all purpose programming
.NET          General or web applications.
Advantages of High level language over low level lang:
•   The main advantage of high-level languages over low-level
    languages is that they are easier to read, write and maintain.

•   High-level languages make complex programming simpler.

•   High level programming techniques are applicable everywhere even
    where computational resources are limited.

•   Error ratio is less in high level language and
    debugging (locate and correct errors in program code ) is easier.

•   Length of the program is also small compared with low level.

•   Many real time problems can be easily solved with high level
    language.
Low Level Language
•      A low level language is the language that
     deals with hardware registers.
•      Assembly language is the best example of low
     level language, this is in between machine
     language and high-level language.
•      A low-level language does not need a
     compiler or interpreter to run the
     program, the processor run low-level
     code directly.
Assembly Language

•       Assembly languages have the same structure
    and set of commands as machine languages, but
    they enable a programmer to use names instead of
    numbers.

•       In the early days of programming all programs
    were written in assembly language but now almost
    programs are written in a high-level language.

•       Programmers still use assembly language
    when speed is essential or when they need to
    perform an operation that isn't possible in a high-
    level language.
Assembly Language
It uses mnemonic codes (short forms) for instructions
and allows the programmer to introduce names for blocks
of memory that hold data.
Assembly language is designed to be easily translated into
machine language. Like machine language, assembly
language requires detailed knowledge of a particular
internal computer architecture
mov edx, [esp+8]
cmp edx,
0 ja @f
mov eax, 0
ret
Machine language

• Machine code or machine language is a system
  of instructions and data executed directly by
  a computer's CPU, the lowest-level
  programming language that only be
  understood by computers.

• Computer language that is directly executable
  by a computer without the need for translation
  by a compiler or an assembler.
Machine Language
The native language of the computer,
The set of symbolic instructions in binary that is used to
represent operations and data in a machine called machine
code
Machine Language:           “0110101100101000”
machine language is a collection of binary digits or bits
that the computer reads and interprets.

Machine language is the only language a computer
understands, It is almost impossible for humans to use
because they consist entirely of numbers.
Program code converters
    There are four models of execution of program by
    processor in high-level languages:

•   INTERPRETER
•   COMPILER
•   ASSEMBLER
•   TRANSLATER
Interpreter
•      An interpreter is a program that executes
     programming code directly.

•    Interpreter can convert a source code , usually on a
    step-by-step, line-by-line and unit-by-unit basis
     into machine code.

•    Interpreted languages are read and then executed
     directly, with no compilation stage.
Compiler
Compiler is a program that compile source code into executable
instructions that a computer can understand, it compiles code and
produce in EXE format before it run.
 There are two stages of compiler

Intermediate Compilation
   Intermediate level compiles code in the form of Byte code
   and save for later execution without the need to re-read the
   source file.

Machine code Compilation
  Machine code compiles source code directly into machine
  code using Virtual machines that execute code directly into
  machine code
Assembler

Assembler normally converts assembly language’s
source code into machine language.

Assembly language is a family of low-level languages
for programming computers. It implements a symbolic
representation of code.

An assembler is a program that takes basic computer
instructions and converts them into a pattern of
bits ( 0 & 1) that the computer runs to produce result.
Translator

Translator is a computer program that translates one
programming language instruction(s) into another
programming language instruction(s) …

A computer source code is to be translated into a
low-level programming language where native code
compilers change it in machine language for execution.
Language Generations

Computer languages has the same history as the
computers itself history,

There are five generations of languages when
programming method and techniques could be
developed as far as development in hardware
occurred.
First Generation (1GL)

First-generation language was machine language or the level of
instructions and data that the processor is actually given to
work on binary numbers 0s and 1s.

First-generation language is the lowest level computer language.
Information is conveyed to the computer by the programmer as binary
instructions.

In the 1940s and 1950s, computers were programmed by scientists
sitting before control panels equipped with switches so that they could
input instructions as strings of zeros and ones.
Second Generation (2GL)

Second-generation language used assembly language, An
assembler converts the assembler language statements into
machine language.

By the late 1950s, this language had become popular.
Assembly language consists of letters of the alphabet.
This makes programming much easier than trying to
program a series of zeros and ones.

Second-generation language use increased when Grace
Hopper developed FLOW-MATIC, a language that made
programming easier.
Third Generation (3GL)

Third-generation language is a high-level programming language,
such as PL/I, COBOL, FORTRAN and C.

Compiler based FORTRAN and COBOL created because it improved
the record keeping and data management ability in many business
applications.

 In the early 1960s, BASIC language designed and used by
 nonprofessional programmers. BASIC remained popular during the
1970s and 1980s.

Programs written in third-generation languages require more memory
and run more slowly than those written in lower level languages.
Fourth Generation (4GL)

Fourth-generation language is designed to be closer to
natural language than a 3GL language.

Fourth-generation languages attempt to make
communicating with computers as much like the processes
of thinking and talking to other people as possible.

Fourth-generation languages typically consist of English-
like words and phrases, some of these languages include
graphic devices such as icons and onscreen push buttons for
use during programming and when running the application.

Many fourth-generation languages use C, C++, Java and
SQL that support stand-alone as well as web applications.
Fifth Generation (5GL)

Fifth-generation language is programming that uses
a visual or graphical development interface to create source
language that is usually compiled with a 3GL or 4GL
language compiler.

Microsoft, Borland, IBM, and other companies make 5GL
visual programming products for developing applications in
Java, J++, Visual Java, Visual Basic, ASP, ASP.NET,
VB.NET and C#.

Visual programming allows you to see object oriented
structures and drag icons to assemble program blocks.

Mais conteúdo relacionado

Mais procurados

High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)Maliha Jahan
 
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
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languagesraksharao
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languagesluckas chauhan
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine CodeProject Student
 
Machine language
Machine languageMachine language
Machine languageRipal Dhruv
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer languageSwarnima Tiwari
 
Programming languages
Programming languagesProgramming languages
Programming languagesgaurav jain
 
Copmuter Languages
Copmuter LanguagesCopmuter Languages
Copmuter Languagesactanimation
 
High Level Languages (Imperative, Object Orientated, Declarative)
High Level Languages (Imperative, Object Orientated, Declarative)High Level Languages (Imperative, Object Orientated, Declarative)
High Level Languages (Imperative, Object Orientated, Declarative)Project Student
 
Computer programming
Computer programmingComputer programming
Computer programmingSuneel Dogra
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages BakhatAli3
 
classification of computer language
classification of computer languageclassification of computer language
classification of computer languageBinamraRegmi
 

Mais procurados (20)

High Level Language (HLL)
High Level Language (HLL)High Level Language (HLL)
High Level Language (HLL)
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
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 ...
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
computer languages
computer languagescomputer languages
computer languages
 
Lecture1
Lecture1Lecture1
Lecture1
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languages
 
Assembly and Machine Code
Assembly and Machine CodeAssembly and Machine Code
Assembly and Machine Code
 
Machine language
Machine languageMachine language
Machine language
 
Computer language
Computer languageComputer language
Computer language
 
Presentation on computer language
Presentation on computer languagePresentation on computer language
Presentation on computer language
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Copmuter Languages
Copmuter LanguagesCopmuter Languages
Copmuter Languages
 
High Level Languages (Imperative, Object Orientated, Declarative)
High Level Languages (Imperative, Object Orientated, Declarative)High Level Languages (Imperative, Object Orientated, Declarative)
High Level Languages (Imperative, Object Orientated, Declarative)
 
Computer programming
Computer programmingComputer programming
Computer programming
 
introduction computer programming languages
introduction computer programming languages introduction computer programming languages
introduction computer programming languages
 
classification of computer language
classification of computer languageclassification of computer language
classification of computer language
 

Destaque

Bears Den In Maine
Bears Den In  MaineBears Den In  Maine
Bears Den In MaineCPartipilo
 
Center for Biological Diversity - Newsletter Fall 2010
Center for Biological Diversity - Newsletter Fall 2010Center for Biological Diversity - Newsletter Fall 2010
Center for Biological Diversity - Newsletter Fall 2010CPartipilo
 
Madhya bharat gramin bank recruitment 2010
Madhya bharat gramin bank recruitment 2010Madhya bharat gramin bank recruitment 2010
Madhya bharat gramin bank recruitment 2010recruitmentjobs
 
Shadows Of The Forest
Shadows Of The  ForestShadows Of The  Forest
Shadows Of The ForestCPartipilo
 
Live stream
Live streamLive stream
Live stream07ada
 
Wordpress nedir
Wordpress nedirWordpress nedir
Wordpress nedir07ada
 
Asiatic Black Bear Status Report - Pakistan
Asiatic Black Bear Status Report - PakistanAsiatic Black Bear Status Report - Pakistan
Asiatic Black Bear Status Report - PakistanCPartipilo
 
B2B Social Media Made Easy
B2B Social Media Made EasyB2B Social Media Made Easy
B2B Social Media Made EasyShaun Rowland
 
12 lec 12 loop
12 lec 12 loop 12 lec 12 loop
12 lec 12 loop kapil078
 
Cmp104 lec 2 number system
Cmp104 lec 2 number systemCmp104 lec 2 number system
Cmp104 lec 2 number systemkapil078
 
Cmp104 lec 4 types of computer
Cmp104 lec 4 types of computerCmp104 lec 4 types of computer
Cmp104 lec 4 types of computerkapil078
 
11 lec 11 storage class
11 lec 11 storage class11 lec 11 storage class
11 lec 11 storage classkapil078
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartskapil078
 

Destaque (16)

Bears Den In Maine
Bears Den In  MaineBears Den In  Maine
Bears Den In Maine
 
Center for Biological Diversity - Newsletter Fall 2010
Center for Biological Diversity - Newsletter Fall 2010Center for Biological Diversity - Newsletter Fall 2010
Center for Biological Diversity - Newsletter Fall 2010
 
Madhya bharat gramin bank recruitment 2010
Madhya bharat gramin bank recruitment 2010Madhya bharat gramin bank recruitment 2010
Madhya bharat gramin bank recruitment 2010
 
Shadows Of The Forest
Shadows Of The  ForestShadows Of The  Forest
Shadows Of The Forest
 
Tic final5
Tic final5Tic final5
Tic final5
 
Live stream
Live streamLive stream
Live stream
 
Wordpress nedir
Wordpress nedirWordpress nedir
Wordpress nedir
 
Asiatic Black Bear Status Report - Pakistan
Asiatic Black Bear Status Report - PakistanAsiatic Black Bear Status Report - Pakistan
Asiatic Black Bear Status Report - Pakistan
 
B2B Social Media Made Easy
B2B Social Media Made EasyB2B Social Media Made Easy
B2B Social Media Made Easy
 
12 lec 12 loop
12 lec 12 loop 12 lec 12 loop
12 lec 12 loop
 
Lec9
Lec9Lec9
Lec9
 
Lec 10
Lec 10Lec 10
Lec 10
 
Cmp104 lec 2 number system
Cmp104 lec 2 number systemCmp104 lec 2 number system
Cmp104 lec 2 number system
 
Cmp104 lec 4 types of computer
Cmp104 lec 4 types of computerCmp104 lec 4 types of computer
Cmp104 lec 4 types of computer
 
11 lec 11 storage class
11 lec 11 storage class11 lec 11 storage class
11 lec 11 storage class
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
 

Semelhante a Cmp104 lec 6 computer lang

Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generationMunawar Bukhari
 
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
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESNoorHameed6
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languagesNaqashAhmad14
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computerKeval Goyani
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming VanessaBuensalida
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Arslan Hussain
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
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
 
computer languages
computer languagescomputer languages
computer languagesYasirali328
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 

Semelhante a Cmp104 lec 6 computer lang (20)

Computer languages and generation
Computer languages and generationComputer languages and generation
Computer languages and generation
 
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
 
EVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGESEVALUTION OF COMPUTER LANGAGES
EVALUTION OF COMPUTER LANGAGES
 
Programming languages.pptx
Programming languages.pptxProgramming languages.pptx
Programming languages.pptx
 
introduction to programming languages
introduction to programming languagesintroduction to programming languages
introduction to programming languages
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Programming languages of computer
Programming languages of computerProgramming languages of computer
Programming languages of computer
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Computer language
Computer languageComputer language
Computer language
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
sege.pdf
sege.pdfsege.pdf
sege.pdf
 
Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
Programming Fundamental Slide No.1
Programming Fundamental Slide No.1Programming Fundamental Slide No.1
Programming Fundamental Slide No.1
 
Computer Language
Computer LanguageComputer Language
Computer Language
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
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 languages
Computer languagesComputer languages
Computer languages
 
computer languages
computer languagescomputer languages
computer languages
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Mais de kapil078

Btech 1st yr midterm 1st
Btech 1st yr midterm 1stBtech 1st yr midterm 1st
Btech 1st yr midterm 1stkapil078
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer langkapil078
 
Cmp104 lec 3 component of computer
Cmp104 lec 3 component of computerCmp104 lec 3 component of computer
Cmp104 lec 3 component of computerkapil078
 
Cmp104 lec 1
Cmp104 lec 1Cmp104 lec 1
Cmp104 lec 1kapil078
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8kapil078
 

Mais de kapil078 (6)

Btech 1st yr midterm 1st
Btech 1st yr midterm 1stBtech 1st yr midterm 1st
Btech 1st yr midterm 1st
 
Cmp 104
Cmp 104Cmp 104
Cmp 104
 
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer langCmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
 
Cmp104 lec 3 component of computer
Cmp104 lec 3 component of computerCmp104 lec 3 component of computer
Cmp104 lec 3 component of computer
 
Cmp104 lec 1
Cmp104 lec 1Cmp104 lec 1
Cmp104 lec 1
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8
 

Último

DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 

Último (20)

DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 

Cmp104 lec 6 computer lang

  • 2. Computer languages • A computer language is an artificial language designed to work for different applications in different environments. • Programming languages can be used to create programs that control the behavior of a computer and serve any purpose. • Computer languages have some form of written specification of their Syntax (Rules) and Semantic (Words, phrase & sentences)
  • 3. Computer languages The term programming language usually refers to high-level languages such as BASIC, C, C++, COBOL, FORTRAN, Pascal, Java, Oracle, ASP.NET, VB.NET and C#. Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions.
  • 4. Computer Languages Human languages are known as natural languages. Unfortunately, computers can not understand natural languages, as a result we must communicate with computers using computer languages. These languages are; • High Level Languages • Low Level Languages • Assembly Language • Machine Language
  • 6. High Level Language The high-level languages are much closer to human language. A programming language such as C, FORTRAN or Pascal that enables to write programs which is understandable to programmer (Human) and can perform any sort of task, such languages are considered high-level because they are closer to human languages. High level language must use interpreter, compiler or translator to convert human understandable program to computer readable code (machine code).
  • 7. Examples: Many high level languages have appeared since Fortran II the most widely used have been: COBOL Business applications FORTRAN Engg & Scientific Applications PASCAL General use and as a teaching tool C & C++ General Purpose - currently most popular. PROLOG Artificial Intelligence JAVA General all purpose programming .NET General or web applications.
  • 8. Advantages of High level language over low level lang: • The main advantage of high-level languages over low-level languages is that they are easier to read, write and maintain. • High-level languages make complex programming simpler. • High level programming techniques are applicable everywhere even where computational resources are limited. • Error ratio is less in high level language and debugging (locate and correct errors in program code ) is easier. • Length of the program is also small compared with low level. • Many real time problems can be easily solved with high level language.
  • 9. Low Level Language • A low level language is the language that deals with hardware registers. • Assembly language is the best example of low level language, this is in between machine language and high-level language. • A low-level language does not need a compiler or interpreter to run the program, the processor run low-level code directly.
  • 10. Assembly Language • Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers. • In the early days of programming all programs were written in assembly language but now almost programs are written in a high-level language. • Programmers still use assembly language when speed is essential or when they need to perform an operation that isn't possible in a high- level language.
  • 11. Assembly Language It uses mnemonic codes (short forms) for instructions and allows the programmer to introduce names for blocks of memory that hold data. Assembly language is designed to be easily translated into machine language. Like machine language, assembly language requires detailed knowledge of a particular internal computer architecture mov edx, [esp+8] cmp edx, 0 ja @f mov eax, 0 ret
  • 12. Machine language • Machine code or machine language is a system of instructions and data executed directly by a computer's CPU, the lowest-level programming language that only be understood by computers. • Computer language that is directly executable by a computer without the need for translation by a compiler or an assembler.
  • 13. Machine Language The native language of the computer, The set of symbolic instructions in binary that is used to represent operations and data in a machine called machine code Machine Language: “0110101100101000” machine language is a collection of binary digits or bits that the computer reads and interprets. Machine language is the only language a computer understands, It is almost impossible for humans to use because they consist entirely of numbers.
  • 14. Program code converters There are four models of execution of program by processor in high-level languages: • INTERPRETER • COMPILER • ASSEMBLER • TRANSLATER
  • 15. Interpreter • An interpreter is a program that executes programming code directly. • Interpreter can convert a source code , usually on a step-by-step, line-by-line and unit-by-unit basis into machine code. • Interpreted languages are read and then executed directly, with no compilation stage.
  • 16. Compiler Compiler is a program that compile source code into executable instructions that a computer can understand, it compiles code and produce in EXE format before it run. There are two stages of compiler Intermediate Compilation Intermediate level compiles code in the form of Byte code and save for later execution without the need to re-read the source file. Machine code Compilation Machine code compiles source code directly into machine code using Virtual machines that execute code directly into machine code
  • 17. Assembler Assembler normally converts assembly language’s source code into machine language. Assembly language is a family of low-level languages for programming computers. It implements a symbolic representation of code. An assembler is a program that takes basic computer instructions and converts them into a pattern of bits ( 0 & 1) that the computer runs to produce result.
  • 18. Translator Translator is a computer program that translates one programming language instruction(s) into another programming language instruction(s) … A computer source code is to be translated into a low-level programming language where native code compilers change it in machine language for execution.
  • 19. Language Generations Computer languages has the same history as the computers itself history, There are five generations of languages when programming method and techniques could be developed as far as development in hardware occurred.
  • 20. First Generation (1GL) First-generation language was machine language or the level of instructions and data that the processor is actually given to work on binary numbers 0s and 1s. First-generation language is the lowest level computer language. Information is conveyed to the computer by the programmer as binary instructions. In the 1940s and 1950s, computers were programmed by scientists sitting before control panels equipped with switches so that they could input instructions as strings of zeros and ones.
  • 21. Second Generation (2GL) Second-generation language used assembly language, An assembler converts the assembler language statements into machine language. By the late 1950s, this language had become popular. Assembly language consists of letters of the alphabet. This makes programming much easier than trying to program a series of zeros and ones. Second-generation language use increased when Grace Hopper developed FLOW-MATIC, a language that made programming easier.
  • 22. Third Generation (3GL) Third-generation language is a high-level programming language, such as PL/I, COBOL, FORTRAN and C. Compiler based FORTRAN and COBOL created because it improved the record keeping and data management ability in many business applications. In the early 1960s, BASIC language designed and used by nonprofessional programmers. BASIC remained popular during the 1970s and 1980s. Programs written in third-generation languages require more memory and run more slowly than those written in lower level languages.
  • 23. Fourth Generation (4GL) Fourth-generation language is designed to be closer to natural language than a 3GL language. Fourth-generation languages attempt to make communicating with computers as much like the processes of thinking and talking to other people as possible. Fourth-generation languages typically consist of English- like words and phrases, some of these languages include graphic devices such as icons and onscreen push buttons for use during programming and when running the application. Many fourth-generation languages use C, C++, Java and SQL that support stand-alone as well as web applications.
  • 24. Fifth Generation (5GL) Fifth-generation language is programming that uses a visual or graphical development interface to create source language that is usually compiled with a 3GL or 4GL language compiler. Microsoft, Borland, IBM, and other companies make 5GL visual programming products for developing applications in Java, J++, Visual Java, Visual Basic, ASP, ASP.NET, VB.NET and C#. Visual programming allows you to see object oriented structures and drag icons to assemble program blocks.