Basic Meaning of Computer languages

kamalgulati7 192 views 16 slides Sep 09, 2020
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

Language,
Low-level languages,
High-level languages,
CHARACTERSTICS OF LOW LEVEL LANGUAGES
Third generation languages (3GL)
Types: - C++
VISUAL BASIC
JAVA
JAVASCRIPT


Slide Content

Basic Meaning of
Computer Language
Dr. Kamal Gulati

LANGUAGE
HumanLanguage:Commonlyused
toexpressFeeingandunderstand
otherpersonexpression.Itcanbe
oralorgesturalkindof
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
Alow-levelprogramminglanguageis
aprogramminglanguagethatprovideslittleorno
abstractionfromacomputer'sinstructionset
architecture.Itconsistsofnumericcodesi.e0&1.
Thesecodesareeasilyunderstandabletocomputer
butdifficulttohuman..Alowerlevellanguageis
usedintwogenerationsofcomputer.
•firstgeneration
•secondgeneration

First generation languages or 1GL
Representtheveryearly,primitive
computerlanguagesthatconsisted
entirelyof1'sand0's-theactual
languagethatthecomputer
understands(machinelanguage).

Second generation languages (2GL)
Representastepupfromthefirst
generationlanguages.Allowfor
theuseofsymbolicnames
insteadofjustnumbers.Second
generationlanguagesareknown
asassemblylanguages.Code
writteninanassemblylanguage
isconvertedintomachine
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
•ComputationalSpeedisveryfast.
•Directlyunderstandablebycomputer.
Disadvantages
•Developmentofaprograminmachinelanguageisvery
timeconsuming.
•Errorcorrectionistediousprocess.

HIGH LEVEL LANGUAGES
•High-levelprogramminglanguagesallowthe
specificationofaproblemsolutionintermscloserto
thoseusedbyhumanbeings.Theselanguageswere
designedtomakeprogrammingfareasier,lesserror-
proneandtoremovetheprogrammerfromhavingto
knowthedetailsoftheinternalstructureofa
particularcomputer.Thislanguageisusedinthird
generation.

Thirdgenerationlanguages(3GL)
Withthelanguagesintroducedbythe
thirdgenerationofcomputer
programming,wordsandcommands
(insteadofjustsymbolsand
numbers)werebeingused.These
languagestherefore,hadsyntaxthat
wasmucheasiertounderstand.Third
generationlanguagesareknownas
"highlevellanguages"andincludeC,
C++,Java,andJavascript,among
others.

TYPES
•C++
•VISUAL BASIC
•JAVA
•JAVASCRIPT

C++
•C++isstaticallytyped,free-form,multi-
paradigm,compiled,general-purposeprogramming
language.Itisregardedasa"middle-level"language,
asitcomprisesacombinationofbothhigh-
levelandlow-levellanguagefeatures.
Language features
Operators and operator overloading
Templates
Objects
Polymorphism

VISUAL BASIC
•VisualBasic(VB)isthethird-generationevent-
drivenprogramminglanguageandintegrated
developmentenvironment(IDE)fromMicrosoftfor
itsCOMprogrammingmodel.VisualBasicis
relativelyeasytolearnanduse.

CHARACTERSTICS
•Interpreted
•Dynamic constructs (open classes, message-
style methods, etc)
•Poor performance
•Concise code
•Flexible syntax (good for internal DSLs)

Advantages
•Thesearesimpletoadoptduetotheirenglishlike
structureofstatements.
•Theyareeasytomaintainanddebug.
Disadvantages
•TheProgramwritteninhighlevellanguagearelessefficient
astheytakemoreexecutiontime.
•Thecompileralsoconsumessomememoryasitisrequired
forthetranslationprocess.