GATE1996
GATE1996
196 1 o( 10
... ~.~.
q, I Lilli ..... ilil
d. 0111ll + ..... 1110
24 For dtc daisy -chain ~cheme of COJ1Jl1.'Cti.ng
110 devices, whicll of ll1e [.)!lowing
a. a llatcltopentting system. stalll!'Jentll ~~ tn.u•~
b. an operatmg sy.stem wltlt a preemptive a.. Itgives non-ID.tifoon priority to various
devices~
·scheduler
c, an opcra1ing system witlt a n<.m- b. It gives 1mifonn priority to all ~evtces.
precmp~ve scheduler c. 1t i s ..mly 11seful for cortnectii~g slow
d~\llce.<> to a lrrocessQt,
d. a ani-programmed operating sy$tem
(9, A cri1icalsectiorLisaprognun segmeut d. II n!quirl!s ~ separate intemqJI pin oo
l.he pro~sso.r for eacb device..
a. whiclt should rwdn a vermin S[!ocilied
amonnr of time 25. (;:ou;,der the foUnwu1g lloatUIS 1101n1
numberrenreseniati.:>rt
b. wluclt avoids deadlocks
c. wl1ere sltard resources are accessed
J1 :MZJ
-0
d 2.~ .J "
b. r'l·... >·l~ t.t )'··'·· d 4 .r, ..l -
J.._
a
~.-
"'fl•
_-
. ... .........
~-..t· -=~---·•ll.lfl
A•••'*,..~~~ q.
I
T(n) t n(~) +n il .MACJI.O Wl. ll
,JFEQ.X
>uX
has Ute solution ,T(n) equal to ..J;NOC:
.If "NF.. X
a, O(n) .WOIW X-tf
b. O(log n) -...
.llMJCZ
6of t O
a, (ii.) only ~der ro•md rolnn scheduling wil.lt time
b. (i) only slice ofone time will is
c. Both (i) 8lld. (ii) a. 10
cL none of the above b'. 4
~2. The con:ect mntcbing f or the follo\vi.tJg ~ 8
pairs is d. 9
A. A.ctivatimtrccqrd 4(>. Consider d1c c:kcuitl.n .Fig. 2,21 WlJioh l 1as
B. Location counter a fonroil binruy number i))b~b1bt. "'input
and a five bit binary mrmber did;dzdtcL1 as
C. Refe(l!lwe <'tlwtJs output '11\e circuitimpler.nents:
D. Address- relocati.m .........
L l..Ulkil!g loadt!r
2. Oru'bage collection rm<=FHif
3. Subroutine call
.... A.s~cmbler
a A-3. 13;4, C'-l;P-2
b. A-4. 8-'3, C-~ D-2
a. Binary to Hex conversion
c, A·4, 8-3, C-2, 0 -1
b. Binary t o BCD converstorL
d. A-3, B-4, C-2, 0 -1
c. I}inary to grey co<je conversi oli.
43 A 1,000 J...1l)"te memory is managecl ~·ing
wrlable vartinons lluJ no compaction. n d. Binaryto radi.,.·l2 conver.siol)
currently has two partitions of sizes 200 Consider. lhe wcuit 1n Fig, 2.22 r
Kbytes and 260 Kbytes respectively. ·nu~ unplem ents
•mallesl allocatl;,n J:e(joesl in Kbytes lhal
could be denied is lor
u Jj j
b. J81
e-- ' _,
....t t
(\, 231 f-+-Z
cL 541
A solution to the Dining Pltilosophcn:
Problem which avoids deadlock is:
a, ensure that all phllosopltcrs pick op u,~
a. ABC .-ABC 1-ABC
left thl before the right fork
b. A '" 'g ~c
b. ensure that all Jlhil(lsopllers pic.k11]' the
Light fork before the left fork e. A €9- B E!l C
c, \lnsure that one pnrlicnlar pltilosopher d. AB + BC +CA
picks up the left fork before the right 4S. Corll<i det Hto.> following stale table iii Fig.
ti>tk, ana that aiJ other plrilosl:>p}lers 2.23 Ior a sequeotialmacbin<' Titc number
pick up fue right fuk before il,te left of!Jtates in the miulmized machine will be
fork
d. none of the abO\<e -.....
'
• I
•••
...... c.'
A 0 ,1
45 !"our j obs lo be executed 0 11 a .;,.g~e
vrocessor SYsf"lll amve nl bJne 0+ in ULe • ~
order A. B, C, D. Their bum CPU time t
..'
--......
requirements are 4, I, 8, I time units
respectively, Tho completion time of A 0 A,' t, I
7 nl It t
d. 81 61 52 14 41 ~)
e. 17 77 27M 11143
5J. A l.•gic ntl\W•rl. hu:; til'" Jalll mpul~ A and
d. B, uni.l t\\11 cQillnll mpul$ Cu tmd C1• ll
iu111lcn•ents the l'uucllL>11 F accuriling In Ibe
4') What IS the c4wvnlcnt hm1lctm c~'p!CSsi''" rollt"'~ng, Tllhle.
in pnXlLJot-ot'-swus l(>nn f.-r d1e Kamaugb
1Uup giveulu Fig. l1.J Cl Co r
CD
•• 00 01 00
0 0 A+B
00 I
"
I
0
I
I
0
A+B
A.B
01 I I I I All
II I I
lmplemenL thl: oircUJL u~mg llm: 4 to J
10 I I
Multiplexor, one .Z-mpnt f'xclU-<JVe OR
gale, o ne ~-inptll AND gate. one 2-mpul
OR gatr und one lnv~-rtcr
11. Bfi 1-BD
54. An 11052 l)w;ro system has 1n1 output p011
b ( li +C+ o)(ii+C -ri5) wi01 nddrc:.-s 001 L Cllnsidl"l' till! l'ul1111Ving.
asscmbly lnnsunge pm[U3nL
u. (8 •Dl(B•D)
ORO OIOUH
d. (B+li){B+D) MVl 1\, f!OFI
I
x2 for (It ,; I)
mtplemcntetl llsing a list \\ltO$-' current
1{1<) %
2
.-x ~x~ for I < x s 2 stahL~ (page numbers irt Jcclmal) is
x+d for• > 2
I 17 I 6]'
VioLI 1l1c va lues lilr dJe constants a. h. c told 1'
d S.) lblJt f 1!< O()Jllffil l()US und diJlcn'I!UDbfo LRUpaac
ev~zywhere on the real line
F'('r ..n<>h hexadecimal adclres:; m the
52 A b1uary searcl1 tree 1s 11$cd to locate thl! uddros.' ;<:qucnce p:iveu bulml ,
tlUJJLbt:r 43. Wlllch of ilic lo llowwg prubu
sequences are possible. HJld wluch (Ire ool'l OOFF, OIOD, !OFF. llDO
E xplain. indicate,
lL 61 52 14 IJ 40 43 \i) ihe new stattL~ ,,rthe lis~
b 2 3 50 40 60 4J (ii) pug,e fiouhs, if WIY. wtd
o, 10(-..51 148374J tiii) p&gc repluclCmcrtts, if uny
IJ ul JU
PIO\e by inductiClfl lh:\1 ev~ry lhud ot Lot O lltt1• 4' 1. ("-bl . la,b, Ll , ii, 41 ,
elcnl<ltiltlf I foe Scqucnt:c ,, ~._,en Z, q) be a pu.•hdown oul<\mnlon accepting
by empty llltlck, for the langunge which is
58 Lei A = ['~• ull
"" ] and B =
tl,;b" b~
bu ] be [""
the SCI. of all noncmpty even palindromes
over the sc1 Ia. bl. Below tS an ineompkle
11\'u mulnc~ such Ihat AB - I Let t - A speet.tlcatoun of thtt rra.nsiuoo fum:.uon li.
'-ill
~J. k : ---:
&: 1111![1 •• N)ll{~:
i :- t;j,. N :
.... ......;
':1 ut 111
w""
ro
(<I)
(J)
~ .....
..
+ 1111 • Alii m .....
AIIJil ,. A(l +-IIJI; h= I + I
.....
1("&00
k ?(i+j)litl:
< x ... i := t
. , j ,. k
63
..
: .. =:=J
m Alllll.. o
-·
(I I ....., ;
8. fbe weishl or the ooge IU. V) IS (11•\' l
, . - ( . , . . lt', o. lo) ;
b. tl1.: w~igbH1r1he oogd h1. ' ) Is 11 1 v
...... ,.,..,, ., •• It) ~
65. lei (I b.: tl1~ diriOCllOO. weighted graph
shown Nh>w in Fig. 17,
-u,.-lA,.
H•:l
111•2
11
Ql Q:l QJ
0 0 0
0 0
-
..
a,
&.l:
,. "'
-
IJ
L2l
....
IS
1 s,
UJ
......
12
-
Ll , 73 GIVen thm 1he 101t<al suue ot the ctrcun ts
lAo
.... 1.:2 S4, ider)Uf~ ~~~set or suncs whrch ar;, not
rcnch;oblc.
7(1 A comllllter syst~tn u~ Lh~ Banker'~ 74 A hurd dtsk ~~ connected to h 50 M Hz.
Algorithm to di:tll with ll1!11tllocl;s i.tS processor rhrough a I)MA contr11ller
current smt~ is shown In th~ lllbil:s bdo\\, AS$urne that t)1e 1111hUI $eh>P ol' a DMA
where PO, I' I, 1'2 nre processes. nnd RO, trrulSfer llll.t:S lOll{! lock cycles for the
-
R I. R2 nre resource types pr•ocesS<Jr. llnd ussume U1at the -handling or
U1e llllerrupl nt DM.'\ oomplellott l'l!qUires
5110 dock cycles lor the processor file
u aJ a ao•• a ua11:1: bard d.tsk hns n transfer rnte of 2000
~f;!l ~~ 11 D
Kbyrcslsec and 111 cragc bloc~ sae
transflm-ed •s 4K bytes What fructriln of
nli..ij n~ the processor tnne ts consumed l>y tho
dis~. tf the disk ts ncuvcl) tmnsfemng
u Sho11 Lhul the system can b~ tn th is
stutl!
100% of the time''
h What lVIII thl: >)'SI~ dc'l Un a rC<JU~~t 75 A computer ~y~tern has 11 three level
hy process 1'0 rnr on~ 1111it hi' resottrc~ memory hierarchy, wilh ntcess bme and
type Rl'' hit muos as shown bel,mr
.........,,................. ....,....
<Its~ hlc> ck Sll.o! ill' 4K bytes l'h~ LI IS~ L'
-
11~!.1 a~ li!IIUII s
-· -..----·
...........
~· ......,,:_ ,~
~
.............._w..-...........
a. Whnt !lhould be the nuniml,lm SIZes of
level I nod level ~ memories to
ochievl! an U\'crugc ~cccss time of less
1han I00 nsl'C'l
b Whni 1s the o1eragc access time
tl Wh\ll is lh~ ltl:lXIIIlUnl possible IIWII~ llcltJ~Vcd USUlg tho chosen S!Zl:S or
or ITic~"' luvcl 1 and lcv~l 2 mtm~ones?
b Whru; ts the mnxlmum posstbl~ tile ~•zc 76 A hl>rory telmlonl\1 dotnbak s~·stm1 u;~
rn blocks'' lh~ following schcmu
72 Consider dre synchronQus scquentlal USP.RS (Userll, UserNnm~:, HomeT!tiV11l
crrcunrn Fig. :!4.
1300KS LIJookll, 13ooltTitle. AulborNarnc)
I SliED{Bcuk/1. Usar#. Omel
Explam to one Engtish scn1eoce. what
ench of' the followrog relational algebra
queri~s ts destgned lo d~tennine.