Entrance Examination (June 2010)
PhD in Computer Science
Time: 2 Hours
Hall Ticket Number:
INSTNUCTIONS
1. Write your Hall Ticket Number in the box above AND on the answer script.
2. This test is for 2 hours duration carrying 75 marks. There is a negative marking of 0.33 mark for every wrong answer in PARIT A.
3. ALL PARTS ARE COMPULSOtY. Please write answers for multiple-r'hoiu-;
questions of PART A in the table provided on Page 2 of the Question paper and the remaining parts must be answered on the a,nsr€r script.
4. Clearly write Part a,nd Question Numbers. Each part should start on a new page. Answer questions in order.
5. Give precise answers and write clearly.
6. Do all the rough work only on the last page of the ansrver scripl, nowhere else.
Label the page 'Rough Work'.
7. Use of non-programmable calculator and log-tables is allowed.
8. Submit both the question paper and the answer script to the invigilator before ieaving the examination hall.
u-gb
Max. Marks: 75
U-56
PARI A:
oBJECTTvETypE euESTroNS
(aoMarks) Question No. Answer Question No. Answer
I 2I
2
2'23 '23
4 24
5 '25
6 '26
7
'27I 28
I 29
1U
30
11
31
L2 32
1:J
33
L4 34
I5 35
16 36
17 3'(
18 36
19 39
2A
4A
a
U-5L
1. The average case time complexity of finding
minimum element in
a Max-heap having N elements isA. o(ri)
B. o(/oeN)
c. o(L)
D. O(NloeI/)
2. The integ:rs
{1-1000}
are stored in a Binary searchrree
(BST).suppose the search algorithm is implemented on the key 363, one
of
the following sequences islrloT
a possible sequenceof
noclesthat
is examined.It
isA.
2, 252,401, 3gg, 330, 344, 397, 363B.
924, 220,glr,,
244,999, 25g, 362, 363c.
925,202,g1l,240,
gL2, 345,245, 363D.
2,399,397,2r9,266,3g2,3g1,
27g, 3633.
It
isNoT KNowN if
an NP-complete problemA
is suchthat
A. Ae
NPB. Ae
PC. A e
NP-HardD.
Circuit-Sat reducibleto
A.4. Which of the following statements is TRUE about the worst-cl,se time compleritE for operations on heaps?
A.
Neither insertion nor removal is better than linear.B.
Insertion is better than linear,but
removal is not.C.
Removal is better than linear,but
insertion is not.D.
Both insertion and removal are better than linear.u-56
5. A priority
queue is implementedby
storingthe
itemsin
a min- heup (using anarray for the
heapitems). In a
min-heap, the va-lueat
parentis
lessthan the
valueat the child position' If
re-heapification
is
done upward andthe
out-of-place nodeis
at d,atali!with priority
givenby datali,l, Which of the
followingboolean expressions is TRUE to indicate
that
the re-heapification ISNOT YET
DONE.A. (r>0)
B.
(d,atal(i,-
L) 12)< datalil)
C. (, >
0)&8.
(d,atal(i'-
L) l2l< d'atali'\) I
D. (i >
0) ll (d'atal(t'*
L) 12)<
datafi))6. An
algorithm has arun time
complexityof o(lo9 .nf). The
al- gorithm requires 110 operationsfor
aninput
of size 1000.when
theinput
size is doubledto
2000, the algorithm now requires 120 operations. What is your best gUess for the number of operations required when the size is doubledto
4000?A.
i30B.
140c.
150D.
1607.
A
stack data structureis
usedin
whichof the
following imple- mentationsA,
PrioritY queueB.
DePthFirst
SearchC.
BreadthFirst
SearchD.
Post order braversalB. class of languages recognized by
finite
automata is calied as:A.
Context Sensitive languages+
r
I
U .Fb
B.
Recursive LanguagesC.
Regular languagesD.
Context free Languages9.
Given anarbitrary
Non-deterministicFinite
Automaton(NFA) with N
states, the maximum number of statesin
an equivalent minimized deterministicFinite
Automaton(DFA)
isat
least.A.
172B.
2Nc. 2t{
D.
,\,!10. Which of the foilowing statements is FALSE?
A. If
a language is context freeit
can always be acceptedby
a non-deterministic push-down automatonB.
The union of two context free languages is context freeC.
The intersection of two context free languages is context freeD. A
regular language is context free11.
If the
regularset A is
representedby A :
(01+ 1)* and
the regularset B is
representedby B - ((01).1-)., which of
the following statements is TRUE?A. A
is a proper subset ofB
B. B
is a proper subset ofA
C. A
andB
are incomparableD. A: B.
12. TheLanguage
L:{o'u:k} 0}
isA.
Regular LanguageB.
Non-regular Languageu- 56
C.
Non Context-free languageD.
None of the above13. The number of columns
in
a table is kriown as itsA.
RangeB.
CardinalityC.
DomainD.
Degree14.
Tb transmit data bits
1011,the
correct evenparity
sevenbit
Hamming Code is:
A.
0101101B.
i010101c.
1100111D.
011011115. Which of the following is the name of the data structure in a com- piler
that
is responsible for managing information about variables andtheir
attributes?A.
Parse TableB. Attribute
GrammarC.
Symbol TableD.
Semantic Stack16. Overloading involves
writing
two or more functionswith
A.
the same name and the same argument list- B.
different namesbut
the same argument iistC.
the same namebut
different argument listD.
different names and different argument list 17. Cyclomatic complexity is a metricto
countI
u- 56
18.
A.
the number of functionalities of a programB.
the number ofdistinct
paths a program hasC.
the number of insertion points a program hasD.
the average number of functions a class hasChidambaram A'[etri,c is used
to
measure efficiency ofA.
fuuci,iun inleraclionsin
a citr,ssB.
object oriented programsC.
object oriented testingsD.
object oriented designsResolution of externally defined symbols is performed b-v
A.
LinkerB.
CompilerC.
AssemblerD.
Loaderwhich
of the following is(are) serious problem(s) of file manage- ment systems?A.
Data redundancyB.
Program dependenceC.
Lack of data independenceD. All
of the aboveA
databasewith
network schema allowsA.
one-tomany relationshipsB.
many-to-many relationshipsC.
data organizationin
tablesD.
hierarchical data organization19.
20.
21.
u- 56
22. How many
bit
strings of length 8 either startwith
abit
1 or endwith
the two bits 00?A.
160B.
255c.
128D.
6423. Which of the following algorithms can be used to find a
spanning tree
of a given connected$aph
G?A.
BreadthFirst
SearchB.
DepthFirst
SearchC.
Kruskal's AlgorithmD. All
of the above24.
In
standard computer networking terminology we usethe
terms(i)
segmentand (ii)
frame,both to
describepackets.
Usuallythese terms refer
to
which of the following:Segment deals
with
layer 3 packets (network) while frame is for lay'er 4 (transport) packets.Segment deals
with
layer 3 packets (network) while flame is for layer 2 (datalink)
packets.Both
actually dealwith
layer2
(datalink)
packetsbut just
are different namesD.
Segment dealswith
layer4 (transport) while
frameis
for layer 2 (datalink)
packets.25. The least number of
IP
addresses a router and a host may have, excluding loopback addresses, isA.
As many for a router and onefor
a hostB.
Twofor
a router and one for a hostA.
B.
C.
u-56
Both
routers and hosts can have atmost a single unique ar,l- dressTwo for a router and none are really needed for a host 26- consider the situation where a datagram of 4,000 bytes (where 20
byres are of rhe
ip
heacier) arrivesat
a routerthat
must forwar<i packetsto a link with
Maximum Transmissionunit (r\frLr) of
1,500 bytes.
If
fragmentation is permitted, which of the foilowing is the most likely behaviour of the router?A.
Forwardthe
packetby
breakinginto
threefragme'ts with
identical identification and offsei valuesin
the headersB.
Forward the packet by copying data'into three fragme'ts eachwith
identical identification and flag valuesin
the headersc.
Forwardthe
packetby
copyingdata into
three fragmentswith
each fragment having different flag and offset varues in the headerD.
Forwardthe
packetby
breakinginto
three fragmentswiilr
different identification values
in
the headers27- Imposing a linear order on all resource types, and letting procesries request resources in increasing order of enumeration is anexarnple of:
A-
Deadlock avoidance wherethe
systemwilr
never errter n"."unsafe" state
B.
Deadlock detection where out-of-sequence resource can easily be identifiedc.
Deadlock avoidance where hold andwait
conditions canrrot occurD.
Deadlock prevention where circular waitsfor
resources carl never take place28.
In
TCP congestion control which of thefollowi'g
isMosr coR-
RECT?
C.
D.
requests
u- 56
A.
The sender respondsto
a loss event by reducingits
conges-tion
window sizeB.
The receiver does not drop excess packetsbut
due to conges-tion
doesnot
forward themC.
The receiver drops excess packets dueto
congestionD.
To compensate for the loss event, sender doublesits
conges-tion
window size29. The amount of time required
to
read a block of data frour a diskinto
memoryis
composedof
seektime, rotational
latencl', and transfertime.
Rotational latency refers toA.
the timeit
takes for theplatter to
make afull
rotationB.
the timeit
takes for the read-write head to mor,-e into position over the appropriate trackc.
thetime it
takes for theplatter to
rotate the correct sector under the headD.
None of the above30. According
to the
specificationsof a particular
hard cliska
seektakes 3 msecs between adjacent tracks.
If
the disk has 100 cvlin- ders how longwill it
take for the head to move from the innerrnost cylinderto
the outermost cylinder?A.
30 mi,crosecondsB.
3000 rnsecsC.
3 microsecondsD.
300 rnsecs10
U- 5L
31.
For Questions 31 and 32, use the following table.
The Principal Disjunctive Normal Form
(DNF)
forf
(p,g,r)
gir-enin
the tableis:
(Note:I
means not-of-A)A. Fqr+pqr*pQr B. pqr+pqr*pQr C. pqr+Fqr+pqr D. pqr+Fqr*pQr
The simplified equivalent logical expression for g(p,g,
r)
is:A. (p*- qr
B. (p-, qr
C. (p** qr
D. (p*' qr
33.
which
of the following is (are) TRUE about'irtual
rnemor\: s\rs_tems
that
use pages?I.
Thevirtual
address space can be largerthan the
amonnt of physical memory.il.
Programs must be resident in main memory throughciut their execution.rII.
Pages correspondto
semantic characteristicsof the
pro- gram.32.
p q
r f
(p, q,r)
g(p,q,r)
1 1 1
1
0 0 0 0
1 1
0 0
1
1
0 0
1
0
1
0
1
0
1
0
0 0
1
0 0
i
1
0
1 1 1
0 0
1 1 1
11
u -'- 5b
I
onlyII
onlyI
andII I
andIII
A
certain pipelined RISC machine has 8 general-purpose registers RA,RI,.
. . , RT and supports the following operations.ADD Rs1,Rs2,Rd :Add Rs1
&
Rs2 andput the
sumin
RdMUL Rs1,Rs2,Rd
:Multiply
Rs1&
Rs2 a:rdproduct in
RdAn
operation normally takes one cycle; however, an operation takes two cyclesif it
produces a result required bythe
immedi- ately following operationin
an operation sequence. Consider the expression AB + ABC +BC,where
variables A,B,C
are locatedin
registers "R0, Rl,R.2. If the
contentsof
these three registers must not be modified, what is the minimum number of clock cy- cles requiredfor
an operation sequencethat
computes the value ofAB + ABC +
BC?A.5 8.6
c.7
D.8
Wrich
of the following statement(s) isf
arc TRUtr:I.
Deterministicfinite
automaton hasthe
same po\\.er as tire non-deterministicfinite
automaton.n.
Deterministic push down automaton has the same power asthe non-deterministic push down automaton.
III.
Deterministicturing
machine has the same power as norl- deterministicturing
machine.A.
B,
C.D.
34.
otrt)tJ.
12
U-s6
A. I, II
andIII
B. I
onlyC. I
andIII
onlyD. I
andII
only36. The uon Neumann bottleneck arises due to
A.
mismatchin
speed between secondary andprimary
storageB.
mismatchin
speed betweencpu
and primary storageC.
slow speed ofI/O
devicesD.
low clock speeds37. Accessing disk storage is slower than accessing
RAM
by an order ofA.
10B.
100c.
1000D.
100,000After
readingthe
following passage, choosethe best
answerto
each question. Answer questions 38 - 40 following the passage on the basis of what is stated or implied
in
the passage.An
essay which appeals chieflyto
the intellect is Francis Bacon's"of
studies." His carefultripartite
division of studies expressed succinctlyin
aphoristic prose demands the complete attention of the reader. He considers studies as they shouldbe:
for pleasurc, for self-improvement, for business. He considers the evils of excessstudy:
laainess, affectation, and precocity. Bacon divides booksinto
three categories: thoseto
be readin part,
thoseto
be reacl . cursorilg and thoseto
be readwith
care. Studies should inclucle reading, which givesdepth;
speaking, which adds readinessof
13
38.
39.
40.
u' - 56
thought;
andwriting,
whichtrains
preciseness. somewhat nris- takenly,the author
ascribes certain virtuesto individual
fieldsof study:
wisdomto
history,wit to
poetry, subtletyto
mathe- matics, and depthto
natural philosophy. Bacon,s four-hundred- word essay, studdedwith Latin
phrases and highly compressedin
thought, has intellectual appeal indeed.which
of the following is the most appropriatetitle for
the pas- sage, based onits
content?A.
Flancis Bacon and the Appeal of theEsay
B. "Of
Studies":A
Tbipartite DivisionC. An
Intellectual Exercise: Francis Bacon,s ,,Of Studies,'D.
The Categorization of Books Accordingto
BaconAccording
to the
passage, who has mistakenly ascribed certain virtuesto
individual fields of study.A.
Scholars of the SocietyB.
General ReaderC.
The author of the passageD.
Fbancis BaconThe
passage suggeststhat the author
would bemost likely
to agreewith
which of the following statements?A. "Of
Studies" belongsin
the category of worksthat
demandto
be readwith
care.B.
Scholars' personalities are shaped by the academic disciplinein
which they are engaged.c. An
author can be more persuasivein
a long essay tharri'
ashorter one.
D. It
is an a.ffectationto
use foreign wordsin
one'swriting.
T4
I
I
I
u- s-6
PART B: sHoRT ANSwER euESTroNS (20 Marks)
Answer any
FrVE Questions.
Each Quest'ion carries Four Marks 1. Given alist
of numbers, for each of the operations listed below, briefly describe an algorithmto
implementit
and state the algo-rithm's
asymptotic time complexity.(a) Find
the minimum value of the list.(b)
Compute the arithmetic mean(c) Find
the mode (the elementthat
is repeated the most).2. Let G
be an undirected graphwith
100 vertices numbered 1to
100. Two vertices e andj
are adjacent rtli- jl:
6or li,- jl:
10.What is the number of connected components in
G? (Hint:
Lookat the
connected edgesin the
adjacencymatrix, ignoring
anybridges between the two sets).
3. TCP uses a timeout
/
retransmit mechanism to recover from lost segments.Bxplain the
essential conceptsof
howthis
timeont value may be estimated.4.
Consider the grarnmar G whose productions are: S-t
^9b,S I a(a)
Does the string abababa belong to the language generated by the grammar G?(b)
Is the grammar G ambiguous? Justify your answers.5.
What
isthe
valueof ft
afterthe
following pseudocode has been executed? Pleasejustify
your answer clearly.k :0;
forh: lton,
f
or iz :
Lto
'i'1, fori* :
L toi*-1
k_k+1;
u --56
6. Obtain a minimum
spanning forestfor the
foliowing weighted undirected graph represented bythe
10x
10matrix A (0
indi- cates there is no edge).A:
7.
Write a
boolean expressionthat is
equivalentto the circuit
di- agram givenin Figure 1.
Please showthe
intermediate steps clearly.Figure 1: Circuit Diagram
0044500000 0025300000 4240100000 4503500000 5315000000 0000000534 0000000722 0000057032 0000032321 0000042218
16
t
I
U,-sb
PART C:
LONG ANSWERQUESTION (10 Marks) write
a programin
C for implementing a Binary Search Tree (BST)data structure.
Your program shouldhave
Insert,Delete
and" Fin,r]functions as well as function(s)
to
read a filethat
conta,ins onern,tions onthe
BSTin
the followingformat:
Funct'ion Value..An
example of a file shorvn below:Insert
20Insert
10Delete
20Insert
30Find
10I.
Give the code of functions for operations on BST.II.
Give the code of function(s)for
handling theinput text
file ancluo.
rrr.
Show the output of your program after each line for the examplctext
file given above.PARJT D: (5 Marks)
1. The following questions pertain to your research interest. Answer briefly and to-the-point.
a.
State your topic of research interest.b. Why
do you chooseto
do research on this topic?c.
Mention an important research publication you have studiecl in this research area.What
is the contribution of this paper?d. What
are the potential applications of this research?e.
How do youthink your
education,training
and experience help you do researchin
the area you have chosen?17