Categories of Computers and Computer Languages: (Ii) Type (Iii) Purpose

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

chapter 1

Categories of Computers and


Computer Languages

Learning Objectives
I
, This chapter focuses on computers and computer languages. Computers are categorised
1
on the basis of (i) generation (ii) type (iii) purpose (iv) size, speed, processing power and
price. The aim of this theme is to enable you to communicate with the computer by
using specific languages that are broadly divided into three categories namely machine
1
language, assembly language and higher level languages. You will also become aware of
' all the different operations performed by a computer which are controlled by computer t
, programs written in different computer programming languages. )
- - -
- ~ - - - - - .... .,,,. -- - - -
- ...,. - ... - - - .... -- - - - - -
- -- - ------- --~

Categories of Computers
A computer system primarily consists of hardware and
software. The development of thc<;c two components over
time has also led to the rapid development of tJ1e computer
Knowledge Scope ~
system. This development of computers can be clas!>ified Classification of computers
on the basis of four maJor categone:> that arc as follows based on generations; Basic
, Based on Generations features of analog, digital
and hybrid computers; Micro-
, Based on Type
computers, Mini -computers,
, Based on Purpose
Mainframe and Super-computer
• Based on Size

I. Based on Generations
The term 'generation' can be related to the word 'innovation'. In every generation, computer
technology becomes more advanced than the previous one. The major developments in
computer technology that ha\·e occured in different generations are as follows:

I-, sf Grnerntion Com putt rs (1 q4n.1 Q5f. 1


The first generation computers started with the ENIAC (Electronic Numerical Integrat
or
And Calculator). It was the first fully operational electronic and general-purpose computer.

-
1l was developed by Professors J. Prespcr Eckcrl
and John Mi\l1chly in the USA nnd was built
by using the vacuum tubes technology. A high -
level programming lnngungc cnl\cd PORTRAN
(Formula 1\'anslalion) was also developed ~y
IBM (lntcrnnlionnl Business Machines) in th18
generation.
Vacuu m Tube~ used by
First Generation Computers
Features of the First Generation Computers
• TI1ese computers were very large in size and
a lot of space.
• Vacuum tubes were the main electronic com
occupied Knowledge Corner ~ \
....,.
Prof. Howard H. Aiken of
ponents Harvard University devel
used in these computers. . oped
the first electrom echanical I
• These computers were based on machine
level and computer nam ed as Harvard
assembly level languages.
Mark~- - - - - ]

Limitations
• These computers were difficult to operate.
• They needed heavy air-conditioned systems beca
use of the tremendous amo unts of heat
generated by the vacuum tubes.
• These computers also consumed huge quantities
of power.

Second Generation Computers (1956-1963)


The second generation computers used transistors
instead of
replacing vacuum tubes. With the invention of
transistors,
the computers became smaller in size, faster
and more
reliable. The speed of these computers increase
d from
milliseconds to microseconds. During this peri
od, some
high level programming languages like COBOL (Co
mmon
Business - oriented Language) and BASIC (Beginne
rs All
Purpose Symbolic Instruction Code) were also deve
loped.
Transistors used by Second UNIVAC (Universal Automatic Computer) and LEO
(Lyons
Generation Computers Electronic Office) are the examples of second gene
ration of
computers.
Features of the Second Generation Comp,,ters
• Transistors were one of the main components used
in the circuit of these comput
• The computers were smaller in size as compare ers.
d to the first generation comput
• The processing speed of these computers increased ers.
from milliseconds to micro
seconds.
-,,.. ( , Hllptlft'J'.,; (l964- /W7 1)
•//(1// ( . ' '
. , t; '' ' ' !"\tl011
,,,,, . computers used inlcgrnlcd c11\·u11s ( ICs)
1 ird gene ' .. performance. An intcgrntrd d rcull ls n

t 1
· tit'11I

·il111P•
1
:l 1he11

Ieel ro111 (..


1111
-~ • of sc •l.~nti
.
l .1111Jrove, . ·· rcuit contninmg hundreds of transistors
I111 L
11 .,ct del 1
·t ·O)UC cl
.• components thot arc pnckcd OH a thin
. .
J lltht'I' c . • ductor urntcriul wluch 1s known as th e JC
of computers led lo lhe invention of
,1t'l1. . rene1a O11 f l. .
l ·p •flus g iputer. Some examples o · turd generation
L·hl ' rune coll
1
ht' n1,1iJ1 1' _. JBM-360 and Honeywell 200. Jntcgratcd Circuits t1.~ed by
ters ,ut: 'I11ird Generation Computers
,oIIIPU
' . , Tltird Generation Computers
·, of I11'
~i•aftlfL · · f JC technology reduced the size of these computers.
0
, 1Jit' use uters could do fast calculations (i. e., in nanoseconds).
1
, 1nese con ~t to hold data and information was more due to improved secondary storage
' 7heif capac1 y
devices.
n-vation Computers (1971-1985)
rth Gettr:-,.
foll Microprocessors came into existence with this generation that led
to the emergence of 'microcomputers: Presently, the 'i-core' series is
considered to be one of the most powerful microprocessors developed
by the Intel Corporation, USA. The latest development of the series
is the 'Intel core i7' that is being used as a processor in desktops and
laptops. All personal computers (PC) manufactured by IBM, Apple,
HCL, Dell, Compaq, Lenovo, etc. belong to the fourth generation
of computers. Languages like SQL (Structured Query Language), C,
Microprocessors used
by Fourth Generation C++, JAVA, etc. were developed in this generation. Some examples of
Computers computers of the fourth generation are Apple I, IBM - 370, Honeywell
6080.

Features of Fourth Generation Computers


• These computers are widely used for general purposes
Knowled~e Corner ,,f\_.
._,..",.

as well as commercial applications. Technologies used in Different


• The storage capacity of these computers increased up Generations:
to several terabytes and even petabytes. First Generation: Vacuum Tubes
Second Generation : Transistors
Fifth Generation Computers (Present and Future) Third Generation: Integrated
Circuits
A computer does not possess intelligence. However,
Fourth Generation:
scientists are working to produce intelligent computers
Microprocessors
~at can take decisions on their own. The main objective Fifth Generation: Artificial
is to introd I .
th· k uce Q m these computers so that they can Intelligence
m.and behave 1·ike human beings.
lik 1his concept is called ½.rtificial Intelligence' (AI). In this application, computers will behave
eexperts d·
an mteract with human beings.

Categories of Computers and Computer Languages 3


(/1
"' I

I t

ll, l\Ma·,1 '"' 'l)· pti ,


'\\\\l\'llhllri ' 1111 1111111 111, 1l111111llll'd Ill' 111dl111', 1,, 1,,,w IJ1Hy ,,,n1,ow•d 11l t1, II,, I I lfJ l,i I

ln1,1 1l111 111 111,1111 , 1111~g111 l1,H, 111111wl y1


• :\1111\il}\ l 111111p11\1 1 l'll
• l )\Hl\111 l '11111111t111 1tl
• I lyh, Id { '11t\lplll1 11·~

\uut,w C'm1tf1u/, 11~


.\1t 11n11h1g, 11111p1111'1 w111k11 1111 v111 yl1111, pl,yulrn l q11,111llll 1•1i, '/11 11
dn111 lnpnl h1 11 uH1111111t·1 IM1.: 111111111101111 111 rn1l1111• Jr11•t,J1111 fi 1w
Pl tlw v,11 l.1tlo11s 111 l11p11I 1111d 1111' n•111dl M un · 11l,Ld111•d
allt·t \ ,u11p1u ls1111, tlnr t•x11111pl1•1 1111•11•1 Hrnl1•, tlwr1111111wf1•1',
sp,•,•dn11wll'1 , vnll 111t•l1 1\ t•I, .
1

A,rnt,,i MciLr

Ul11ft,11 C'omp11tcrs

I,
A digitnl L'1)mp11t1.•r ilL'n •pts d11111 111 Ilic hl1111ry f1,n11 (0'1, a 11 d
l's). 1/.1.·ru (O) m1.•1ms OPP, /.,•., low s ig1111I ,111d (I) 111ca1 rn c>N,
1,1' , , high slgn,1I. 11 gives n.•1-11111 111 tt'l'lllll of dlgil H. All perHrnial
compulL'rs and lnplops 111·t• digital 111 11al11n•. lh•vlu.•H lilw
1.:.,lruli1lors, digit11I wntclws 1111d dlgltal l rkkt•I 11corl'hoard1-, foll
und1.•r this cnl egory.
I J11:1tal W:111.h

J:IJ,bl'ltl <:m111111t,•,·~
A hybrid cornp11tr r has co111bl1wd li.•:11111·1.•H of hoth digital
and annlog computers. 'I he n•s11ll ohtnl111•d can hl' ro 111 pilfl•d
with the known value of the sysll't11 "".d can allio ht.• dirl'rtly
visual ised. 'lhus, it has the advantage ol both tlll' Hystt·ni s,
/<cJr cxm11 p/C': 'I he illus!r.ilt•d digital wnld1 it1l llldl's hot It tlw
(calures.
I lylirid W;1td1
O(J~t• ('(1t11t111t,•r.s
11 1l·r"' ·
~r•. ·i.,l·\'\lf\
'l)Sl'
'
(O\\'\pntcrs
.' .
designed for 1wrlc,rmlnJ'
,\l'l'
'
~\x'. ,k t·,\~·k or ,, $pcc1hc apphcallon. ln thc1•H.', 11 SL'I ol
,l sll'~ . . ·\re built into the compt1lcrs for 11crforming
\\ "t\\."'11\~ '
,nstr ~ ·ks• 1ne)' are also known ns dedicated computer s
, ·ihC t,\~ '°
S\'t\. . , the)' perform a single lnsk repeatedly. 'Jhe
lx"-~1u~t: - .
• ·t·ons needed to perform a particular tm;k nrc
. ·tf\\1. \
into the internal memory or the
,em,ai,entl)' stored
ln~
I ter which help it to perform the given task on a
·onlFu Specific purpr,•,c i:r,mputer~ are
'". le command. These computers are used to control air
st used to contr<,J the air traffic
~~- ~~c licrhts, the collection of tolls on highways,
tf3J.ll\., (["dlll t)

satellite tracking, etc.

rl ,rnose Ccu,:p,,tprs
Gt"llrf'(l I- l

General-purpose computer s are used to manage a variety


of tasks. In these computers , the instructio ns needed to
perform particular tasks are temporari ly stored into the
internal memory. When one job is over, instructio ns
for another job can be loaded into the internal memory
for processing. Thus, the same hardware can be used to
execute different programs. General-p urpose computers General-pu rpose computers are USt:d
are more versatile than special-pu rpose computers. They for various purposes like playing
are used for various purposes like playing games, watching games, watching videos, etc.
videos, doing research, performin g calculations, preparing
sales reports, etc.

IV. Based on Size


Computers are also categorised on the basis of their size. The size of a computer changes
in terms of processing speed and storage capacity so as to handle large quantities of data.
Generally, we use personal computers which can be seen at homes, shops, schools, etc.
On the basis of size, computers are classified as follows:
• Microcomputers
• Minicomputers
• Mainframe computers
• Supercomputers

h
,, ,1,,111111 ,,1,1
I 11, ,, ,,
l/////1///1 ,,, i/1/1 /11 !l1111
ll/1/ /11/1I/1•1111 //1 '/{1 1111/ 11111111,,/,
fl lt// Ill/ I /1/,/ 1 1/1111 / l11 /1 1 1/1/1/1
, 1~11 :,, li /11,1 1~ 1111I ,,, IN11,/t, 'I 11 1 'I
',, /I /1 11 I i/1 II /11111 1/ 11/ 1/11 I I'/;//
1111111111111 ,, 11 nl 1111 11111 ,, I Ii,, /111111,;
I 111/'II//I II I/ II // 11 ~1 1111111111111
411 11
I I,, I flt I'II 'I' " ' , ti I,,I/ I /II I Wit I li//l//41///Jl/111/1///l//1111

M/11/1 ,,,,,,,,11, lh
M1t11, illll/t/1/1 / It 1/1 Jlt/1111l/1 I IJ11111 ,,, 11,J,, 1,

, ,,,,, 1,111, 1,, l,111 I,1m I I JJ,,, ,,,;, ,,"• '"')nl, ,q ,,


111111
1,11/1 / q /111'11 11 l1IHl1 1 I 1 'Jw JI; ;,, (./, I.
1
# ,1
,111,/ ,,,~,, 411/11111/ / 11111/1} 11 1, 1 J .,; ,.,,, /11 ,,,,114 /1;,, I ,,
11 1 1 (I
;., , lll/v1111l 1'1/J/J 11111 '' 11111;;/,-, 'II" Ir,;_
1 'H
f, I// 1I / 11111/ 11/11 I M1111 1 111111 111l 1 1,
H

I I

■ 1:11, M,i/11/u11111 (,,,1111 111"1,~


'"
I

f I I I Mi,1111, ,1111, , ,,,,,,,111, , i-. ,,,, J,,,w "''''J,111,,,~


Wil l, l111w ~,,111,~1 llJ/111 )IJ, h, 'Jl wt,1 11,,,,,,,,,,,~
f

11 11 w,,,,,ul/y 1111, ,1 ,,, 1.,,,~,, i11 fu111u, ,I), l,,111}11Jt


1
'"H•llll1t,11l,,111t, ,1t/v,,11,, d 1.;, J,•,1111,, 1N, •,11d1 1,, 111,c~,
itJ
I /1 . 1

fl) h I
Jt 1• the fund~
ii 4 1,
lf//1( / I fl/lf/llf/f /J la,lYfJ,ii'_i, "-"

11,,v,,,, 1,, y,, II,,, ,"' ,,, I'" w,, J/ 11 I ",, 11J•I, ICJ< '"
I•"' ,w,, ,,. '"I"' J"''"I'"''''., 'I/11,,,, I "'" )'"' " '
·•" 11,,., I I" ,, J,.111 II,, /•t"'' ,. ,,.,,,,,, /, , wc.,11 ,, ,
I,,,,'"'"'%
11 ,.,1,, •I lu,, •·1, 'Il11• l1J M , ""'J,, 1/ e, I" I,,,
(,1 ,,,, ,, ,,,,,,,11,, 1/1
',,1),,, '"I"'"'""''"'''' w,,. I,,,. I,/( AY I , /,,.,,,.,l'"tl
1,y 11,,, / ,II A'/ 1,,.,,,11,,
t\11111,t\1,n,,,1, l1 I, I'" " I,,•A , f•A 11" M '""'
II /1// lll /j11 •1t,11tljlf/l1•11j,
t

( ' 0111p11h•1· l.11ng11111~t ~


L1111,,u n1•t' 1~ 11 111 Ii
lo n~ \ ' ' l'< lllll nl '01111111111ir11t101 1 If y, 111 w;int
n 1111111 'l'Y yo,ur Ili ou1.1litM lo yo111 Ir 1,•11<1~. Ilw11 yo11 11crd
gu ugl'. I IN vc-, y lift J
11l ens wit I1 n p . . l ltll I t,, •1li.ur· your VJf'WA ()(
1
ll1•11 I lrn1111 W 10 doc~ not know lhe l.11iu11t1uc
' you rnow, I lc11c. I· ., '' ·
lo " l LII ·I . c, II ,111r,11,1ge b C%c•111 l,dJy required
cs n) s 1 comnu1n lcn tio11 a1nong µcoplt

l(nOWledge Corner -6. -1 ,


Sim ilarly, computer ,~ a mac.hin l' ti. I
"f ,· .
' spec, le or m o f lunguuge Wnrk1'11u w·11
d

l
1,1 un "T\l,1nc.,

means .lo t!s l ob lish corn111unicatior1 between the ll$Cr


,., 1 1 ,1 computer

and lhe muchine. In order to execute ~ t·1•k yot


Information can also be shared
using signals ~hrough eyes and 1 give
• •
1nslrucl1ons lo th e computer 'rLe , " , , .•
facial expressions. • , 11 in~ 1rue 11<,n~ mu~t
L------ be given in lh e same language which the computer
understands. This necessitates the need to learn c<,mputer
r:n~e languages.
ters ..,,__
· .1.11ese Types of Computer Languages
store data
Computer languages are broadly classified under two categories:
and Locai I. Low-level Languages
The IBM
II. High-level Languages
Knowledge Scope •
l Low-level Languages
Low-level languages include the code that is to be operated r Features of Low Level "'
Language (Machine Language
on the machine. They use instructions that are directly
and Assembly Language), High
executed. Low-level languages are further classified into Level Languages; Features
puters the following categories: of 4GLs; Types of translators
puters (a) Machine level language (Interpreter, Compiler)
an.king
entres,
(b) Assembly level language

(a) Machine Level Language (MLL)


(
It is the fundamental language of a computer. It is written as strings of binary digits, i.e., as Os
and ls. When the instructions are given in terms of Os and ls, it is known as machine level li
l
language, e.g. 10010100010, l 110100101, etc. -

-6-, '
\
110 0 -r.,.
101 f'I(, Knowledge Corner
are I

'I 10110
, ;')100
lnstru.ction is a command
ters 111( or order given to the
her '.I I JI
computer to perform a Earlier, instructions in
specific task. machine level language
be
- - were given by pressing
ed
switches. Switch on
d This is the basic language understood by all computers. meant 1 and switch off
During early times, instructions were given only in terms meant O (zero) .
of Os and ls.

( ..11l'g11ril', of <.11111p111n, and <.11111p11ln la11g11.tgl',


\f I fl / 11I /
"' • ,d th \Ill(tl'~ I'M J' I b, thr "'' ~h• 111.
II 1, 11\: • • \'{ ,11t , 1111\ l,11111111,J'C jllll\,{'S ~1H
~ lhr or. ullPl1 ,1,ll ~111 , I

I , t 1 I mtl:lld '
,, ,~1d rs
''"
l
,,

1hrfl l'f'lh l .. ,
\111

, ,, grnC'r,ll
InuI·,"" t
I!: \ (' I,, fllll C I 0 1! \llllllll!'

Ilic co1wcrslon Into


, then.- ,, lh, ,l\" ,1 d 1.11h •' ,1 1 Ill nk illH tt11 '-trlk<•~ tl11 1111g 1•111 ,,
.l It ,s a m,h.hinr ,lqw mlt-111 l,111g11,1~c-.

~.,,1/r ln,I l r11tg1ut~, ('\I I 1


,~ th. imtr 11dio11s 11 , c ijlVl'n to the coniptt1rr Ln
In nn ''" rrnblr ll, rl l,111gu11b' ' ' . .
II 1 11111 ·11H111k ts ,1 st.111d ,111 1 shnrt -10 1ru n o t.ii 10n of an in tr
mncmonilS Al' l\t.\ ) , • '
pertom1 a t crtnin l,bk. ~t11cnH111k ,ndl'S ulln"' ,, ui;c J' l o develop hi(, progr m 10 a
manner ~,~ ('.Ollll'J.IT J hi ,I llhl\.·hm l, k, d l,111gu,1gl'.

t • nt , s oj A$..crmbh I c, d l an · · ·
I. It take~ fc~, time in i.:oding instructions.
2. Programming logic can be de\'eloped
Knowledge Corner n
Instructions written in m nemonics are furtt-ei
fth imp
tY u er
ertormc
e~il). coded into a special form called the OP<oce tt ,..
These codes are actually fed to the computer ~
um1tutions of .1.ssembl) Lew•l 1 rmg11ag..: to perform different tasks.
among llC ool
I. Instructions de\'eloped in the form of Few tasks are illustrated below:
mnemonics must be coded into the Mnemonics Codes Tasks
OP-Code form. LOAD A ---- 7B
- - - -
Enter t he value in A C wa~ develop
2. A translator is required to convert the LOAD B C2 value in B b) Oennis R.1t
OP-Code into a computer-readable 1
binary form.
ADD A, B 23 Add the values of A {or use '-'"th
and B 'Powerful \an
3. Jr is a machine-dependent language. STORE C B4 Store result in C llpp\ications.
HLT
-
fl. Higlz-lel'el Language (HLL) ll.._ EF Stop ,omp\ex ma
l.mgu~gc \S ,
In this system, instructions are written almost like Engl' h 1 . .
15
develop and understand programming logi A ~guage Wh1Ch makes 1t easter to
c. program written i11 a h.ig h - leve l language C311
be executed in almost all computers. Hence high-le,, 1 l·
'
level and assembly level languages. Some well-known h·e hanguages ·are pre ferre d over machint'
FORTRA N , Pascal, etc, ig •1eve} languages are BASIC, COBl)L.

Adv,mtage~ of High fr•,•pf f r111r•11ages


• They are machine mdcpcndent languages.
• Th ey are ea sy to learn and help to develop programn . .
1u1g logic
• J.Jrograms in these languages can be easily n1oditit>d. ·
C+t I.a
lt is an
This hi
,, h1\1 "ltl11t11I ~1111 <11111111111) 1<n 1,w l tlfl cmn ,
111
IP \ olll\c I I lh1 Ill It 11 111111
Ill \I I 1 1111,

111 I I'' 1111111 ,,,, 1l1111 I, IV\ h, I II


Ill\\\ \1 I, 1111 1\I ••I Ilic Ill 1\11 II I 11 l1tl

, ,,h, 111, 1111, ,11i. 1t1gh It vd


N11\\111I.I\ 1

' ' " , \ (1\1\ll, l1lHll l \N '"" ' tt, t ii


,,1, "' \11l\\1 ,,•1, I\ \ Sh 1, ,, '·"'11" 'l't th 11 I

' ,I h, 1,, 1:11111, 1s S,11111 high h \II 111111111 11•• '


I, \II

, rol th, ,1111pl,•,1 h11:h I,·, !'I l,lllg11,1 g,'s Im h1•g111111 •11, In 1111' /f'H
,~ ,en met tlll11.lh. l ~,·11c1ull )', .Ill 1)11' '• ol 1,1~ks rl••velriJJl'<l I
John K,•rnc
furtt, r ht' ,rrfo1111r ,\ 111 I\ \Sil (i , .. ~1.1phi1\ ,111d g1·1H·1,d
1 Kurt, ,it th•' 0
P<oci ni,) II is .,t . . ,, ,,pplkd 111 lhl' tidd., ol ',l ll' llll' ,111d Coll"V." 111 U r, A
1 \
mput r , <'>' G\\' !\A Sil ,111d ()BA!-,\( · ,11 l' 111on• popul,11
~d1ool , hildn•n.

C \\'JS dt>,dopcJ brtw1·1.•n tlw yca1s l%lJ and 197 \ Knowledge Corner
IOA
,n B
b l)enni~ Rit chtl' ut Ih1.· lkll ·1ell-plwm· l.,1bo1 ,1101 ic1,
i us~ I\Jlh thl' Unix 01wrati11g sysll'lll. 'llrn, ,.., ;1 In l'l'J4, r-oHIHAN Nl
of A 1
lnvl'nll'<.l by lohn B,1 ku
[PO"erful l.111guag1: U!>l'd Jor l'nginel'ring ,111d 1,det1llli1.
pphC'..ttJ1111s . It providl.''> dll.'1. I ive tools to pc, f 01 Ill ,111y
It w.,..,th1• tir-.t widely u
high lcwl &enerJI purpo
c.ompkx matlwmalrt,tl oper ,1t1011 in silllpk 101111. ' I his
languag(' 1~ widdy w,ed by l'llA!JH'l'r'> ,llld sl k11li<,ls ,
C 11 l,llltW ,~cw,._ d •v •lop •d

I
as1cr ro In c,11 ly l 'lHll'> by flj.irn
age c.:m
C Stroll <;ll\lP at Al&I, B •II
..11NG
ad1i11e L,,btH .itor It'\, New Jers v. USA
OHOL, CREATOR

< I n,i •1m11e l\j,ll


1
It ls an oh)<'l t or wnt<'d pi ogi ,11 111nl11g (( H >I') la11g11,1g •, \11v~11\
llus lugh ll•vd lang 11 ,1gi· ,., dt•1 iv1·d fro1n ( ; l1111g11,1w·
and it applie.s obie-:t oriemed foatures of Simula 6-. C-t---;-. langu
the user to perform long operations
· cwuen . .a.l.!o' "S
· sh Ort fonn_s._" ,,_age
.• .:c · tl}" 10 0

C~ language is more popular among software . profeSSJonaJs.


. 'lllS lS '·h1
)"

/Al:~ !..··'.gu,1_-::e
<YUage S can also be easil

l
J,-\\:-\ is also an object oriented programm.i.ng ...-... •5 e 13ll~ -:_ -n..ey allow mul
~ l"c;. JllefS.. lLl •
(oop l lanru::iae. This lan2Uage was initially
~ rogran1entered bv• a prog=m1
0 ;:, .... ,.
35 p ~ d l
called OAK {named after the oak tree). It is _ t1lll13Il ctured Query Langu,
._o Stru . \ •
,ery strong in text and string operations. f.·\.\ :-\ ,-~--.d3Y·
,,er. ::u1ificia\ inte\l1g,ence
is a multipurpose language thar is ,,idely used o''~
fur general progran:uning and ror web designing. e< of 4C~ .
.,, ~-a11tnS• inc:re;1se
11
- the producm
Howe,.-er, it also requires a language processor to
1. '{he) ilv accessible
execute programs on a computer system. . are eas .
:!. '{he) can oft.en develop th1
l'isua/ Basic fl'B) 3- l]sers developed in -!G
grams
.t pro~ -
It is another object oriented programming · of languages..
language that has more ad.anced features as . SOft -',•!?•ltllg~ "
r-·GLs

compared to BASIC language. It uses a menu- D;._q;., ' s developed
drfren approach and allows the user to create I 1•
1be program
grams d~·eloped
2. 'Jhe pro
interactn-e programs. This language can easily
be used to link a program ,,ith a graphical
presentation. slator and its Types
Tran demand onl;
uters un
CoillPd Os\. The as5embh-. 1e,
Differences between High-level Languages and
Low-level Languages ls ~ easily. Howe...-er, these
logic · eed a tran.S.lat
-e "-e n
High-level languages Knowledge Corner Hen'- • chine le,el langu
1. These languages are
used to write programs
Low-Jevd l.anguaga
L These ~auages
i~
,- ---------..::-..,.:
into a ma
bclov,.-:
are U5cd to "-Tile JAVA language was devefopeo-;;--
in simple English and l As.sr•THe-r
programs "-ith the ye_ar 1991 by James Gosling at SL,1
by using alphabets and Microsystems, USA. -~~bler is a soitw-are ,
numbers. combination of Os
and 1s. ~ assembl-y le,;cl langua11
2. They are machine-
2. They are machine- basic operations.
independent
dependent
Assembly Le-."al
Language
4Gl.s Fourth Generation
languages (4GLs)
James Gosling; 2. Compiler
The fourth generation languages are popujarh-
Inventor of JAVA language Compiler is a software
known as -1-GLs. These languages are 5Peciall~-
designed to make cost-effective softwares and ~ Machine la le,;el language. It acccp
langti nguage and assembly code.
also reduce the execution time of the programs. age are known fi
generan as rst
Tuev are used in the field of database queries, data on and
languages O
sec.ad
n generation H~··Hc-,e·
martipulation, analysis and report making. h. , · n the oth h La~~age
ign-ieve1 Ian u er and, o der
tliird generang ages are known as
on languages.
IL\f: ln . (ompur
· dcnf,,1n d mg . _
'Jhese Janguages can alsoall be easily accessed by peop Ie w h o do nol I, r 1 • •
",.,.,mers. They ow multiple comm . ave any ,orma training
rogr..... on operations to be . ~ . 1 , 1 .
as P d entered by a programmer. per OJ mec wit 1 a sin gle
coJllman
d structured Query Language (SQL) is lhe onl y :"'''de1y used 4GL in commercial use.
To ay, jficial intelligence Iangu
However, art ages are also classified as 4GL.

aues of 4GLs
Adw1n t t> ••
l. 'JheY increase the product1V1ty of programming.
_'Jhey are easily accessible as compared to third generation languages.
2
3. Users can often develop their own applications using 4GLs.
_ programs developed in 4GLs are more portable than those developed in other generation
4
of languages.

Disadvantages of 4GLs
1. 'Jbe programs developed in the 4GLs need high processing speed of the CPU.
_'Ibe programs developed also require more space in the memory of the computer system.
2

Translator and its Types


Computers understand only machine level language (i.e., the instructions coded in terms of
ls and Os). The assembly level and high-level languages are provided to develop programming
logic easily. However, these forms of languages are not directly understood by the computer.
Hence, we need a translator language processor to convert assembly or high-level languages
into a machine level language. The different types of translator and their working are explained

below:

J. Assembler
Assembler is a software which is used to convert a program (a set of instructions) written in
an assembly level language into a machine level language. It helps a computer to perform its

basic operations.
Machine Level
Assembly Level Assembler Ill Language
Ill
Language

2. Compiler
Compiler is a software that converts a program written in a high-level language into a machine
level language. It accepts the entire program at a time and then generates its equivalent machine

code.
Machine Level
High-level Ill Language
Language
J. Imcrpn fer t
I 1 t1
· software t Ja •s also used to conver a p rog ram Wrillcn .11 o l •
nterpreter 1s a . 1 1language. It accepts in struc tions and 1 ' ''Bh 1.
. bits. 1 . 1en t m achme eve t m ent At th e Lim
mto equ1va e of execut ion the Bcncrat
' Cs I))c,~I Ii,
line- y- .
me o, statement-by-sta
the next line unless the pmaous _ e line/statement
. is e,coc-free. , control aq11 \
"' , do,,, ,,
.ai Interpreter 11 ( ' chine level languages. Instr
High-level
Language
n••-lllljJl"I" Knowledge Corner
_ _ __ ~ • In ma only two dIgl1s. '·"·· Os and
having . s in assembly level Ian
uctIon
1 • 1nslrh LeveI Languages use lnstru
Differences between a Compiler
. and an Interpreter Do You know? ~ • Hlg Java, etc.
C++, rocessor lranslator Is
Compiler Interpreter
Eve ry high-leveJ I
Language
el langu~ge or a high-level I➔
1. It converts the entire
program into its
l . It converts the entire
program into i~ I
I its own specific /lllluage ha
coding it into a llloa~:-ller ro/
language, 1ne level
1ev mbler c onverts an assernb
Asse .5 used to convert a
compiler 1
A ge at once.
machine code at once. machine code line by 1angua te r converts instruc
• An lnter_p;
line. The firs t compiler w line-by-lin .
2. It displays the errors . as
2. It displays the errors designed by Grace H
0
for the entire program of one line at a time ---....:-..:..:--==---....:::::.=-.:::_- ----PPer.
only after compilation.
during the conversion ~
to its machine code.

····· ·· ······· ············ ······ ··· ··


Chapter at a Glance

• purpose
Computera
andcan be classi,ed on the basis ol th,ee major categMes, namely, Qen,.,,~
size.

• ENIAC (Electconic Nume,;cal tntegrator And Calculator) was the first fully operational elo:I,..
and general-purpose
using the technology computer. belonged to the firat generation of computera and was Oi
of vaccum Ittubes.

• The second generation of computera used translstora instead of vacuum tubes.


• The third generation of computers used integrated circuits.

• microcomputers.
The fourth generation of computera used mboprocessors and led to the emergence o

• The Ufth generation ot compu/era are WOrking on the concept of artificial intelligence
• computers
on the basisandof supercomputers.
size, computeo; are classified into mini computers, microcomputers, main!,.,,.. ··· ··· ·· ··············· ··········
······ ······················· ···
• and hybrid
Based computes.
o~ their purpose, computeo; are cagegori5ed as analog computers ' digital compute,
• A computer language is a medium of communication betw ·· ······ ··········· ·············
• Computer languages are broadly classified into two cate . . ···· ········ ········ ···· ·······
een a user and a computer.
high-level languages. !!Ones Vtz_ low.1eve1 languages and
• Low-level languages use instructions that are directty ..<leuted ··· ··· ···· ······ ···· ······ ·····
machine level languages and assembly tevei tanguag.._ and can be categorised as ····· ····· ··········· ·········

······ ···· ·· ········ ········· ·

······· ······················

You might also like