Professional Documents
Culture Documents
'
nyln~~'1.~~~ CS Test ID: 64 AU India Moek GATE Test Series www·gateforum.com ;
1. A shift reduced parser carries out the actions specified within braces Immedratelv
after reducing with the corresponding rule of grammar. "
5 ~ xxW (print 'a')
5 ~ Y (print'b') \
1
W ~ Sz (print 'c') j
What is the translation of xxxxyzz using the syntax directed translation scheme
described by the above rules.
(A) bcaca (B)aabcc (C) aabca ~O)ccbaa
3. In a class B network, how many number of subnets we can have with the subnet
mask as 255.255.240.0
(A) 32 (B) 31 (C) 16 (D) 14
5.. • . Consider the schedule given below. Tl and T2 are two transactions andx and y
. are two resources.
© All riqhtsreserved by GATE Forum Educational Services Pvt Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.com. 1
I'r1i:IGATEFORUM
.u!J~~i'r:'!~'l.g.
~~~c:,:,,!
I I .
CS Test ID: 64 AU India Mock GATE Test Series
- - www,gatefor~
9. How many times the following 'C' program would print 'GATEFORUM'
main C)
{
printf ("\nGATEFORUM");
main ( );
}
(A) infinite number of times (6) give compile time error
(C) till the stack does not overflow (D) give runtime error
© All rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.com. 2
LilH~~Ics ITest ID: 64 AU India MOck GATE Test Series www.gatefo rum. com
10. W"at is the heap (max) that results from inserting the following values in the
orcer given?
53 72 91 42 17 89 3 88
91
8/~3
./
A 17 89
r-. . 3
c; J
)
91
/
A 17 3
r-. 72
42
91
(C)
72
A 8/~9
3
.>.
S3 17
/ 91
(D)
42
.r>:
;
A A 17
72 3
42
eAl! rigIlts reserved by GATE Forum Educational Services Pvt. Ltd. No part of this' booklet rnay be reproduced or utilized in any form without the
..mien permission. Discuss this question paper at www.gatementor.com. 3
HTEFORUM I I .' . .
.W"':'!¥~i;,,:,·' CS Test ID: 64 AU India Mock GATE Test Series www.eatetorum.com
...-
{ (~;J...;-.'.L:J i \'~C 1>
.:\\
,., \f··;tel .
I J) .. ;
i. :__'- , '\ -c< ".\
ktr \ d cl ,
I \
I
...'f'..1
:\ \'~~tQ'
I . ''..(A) S BE. F D e (6) S 6 E D F e
ee)S FeD B E (D) S FED 6 e
~'-
1 .- 8 -+.- 23bits ~
,.
EI I "'\.
[y=] M
5: Sign bit
E: Exponent
M: Mantissa
The value of floating point number in this system is,
V=(-l)S x2E-127 x1.F
Then what is the corresponding decimal value if the floating point stored is:
3F800000
(A) 0 (6) 1 (C) -1 (D) 2
14. In a 32 bit machine to execute an instruction the following steps are carriec
out: Fetch, Decode, Execute and Store, each of which takes one clock period. In
a pipelinedexecution of a four-step task a new instruction is read and it~
execution begins with each new clock period. If each clock period is of 2C
nanosecond and there are 100 instructions in sequence then what is the
speedup ratio of pipeline processing system over an equivalent non-pipelim
processing system?
(A) 3.88 (6) 1.88 (C) 3.68 (D)2.723
15. The 8-bit registers A, 6, Cand D initially have the following values.
A = 10101111 B = 01100000 e = 01000011 D = 01010110
. C AU rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without 1M
wriltenpermission. Discuss this question paper at www.gatementor.com. 4
GATEFORUM
Eng;n&e<ing Success
••• I ••••••••••
I CS I Test ID: 64 AU India- Mock GATE Test Series
I
- www.gateforum.COI1l
Determine the 8-bit values in each register after the execution of the following
sequence of micro operations.
Ai- Cil A
Ai-A-'-8
D i- Cir 0
•• Ci-C",D
8i-8-1
Cil: Circular shift left; Cir: Circular shift right
-.
(A) A = 10111111 (B) A = 10111111 (C) A=11111011 (D)A=10111110
B = 01100001 B = 01100001 B = 00010110 B=01100001
C = 00000011 .c C = 00000011 C = 00110011 C==00000110
D = 01010110 D = 00101011 D = 01010110 0=01010110
16. ~1atch the following Iterative methods with Corresponding Iterative formula.
/'-- List I List II
(A) Bisection f(Xi)
(P) Xi+l = Xi - f'(x )
i
(A) A - R B - P C - Q (B) A - Q B - R C - P
(C) A - P B - Q C - R (D) A - R B - Q C - P
. '(1
17. There are "a" red balls and "b" green balls in a bucket. n balls are drawn from the
'it\
. I
urn and if found that all of them are green then what is the probability that
another ball drawn from those remaining will also be green? Assume n-eb
18. How many colors are needed to color the following graph?
(A) 3
G
(B) 4 A
(C) 5
(D) 6
© All rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission, Discuss this question paper at www.gatementor.com. ' 5
J'v1r::ri'!g Su~~ ICS ITest ID: 64 All India Mock GATE
IATEFORUM .. Test Senes www.gatefonllu.coW
19. Suppose there are five processes in the ready queue as shown below:
i T(Pi) Priority
0 350 5
1 125 2 ~¢
~ ~ V
2 475 3 ".t~~!
3 250 1 't·
4 75 4
oj
If FCFS, SJF and priority scheduling algorithms are used, for which algorithm is
the average waiting time is the minimum? Assume lower integer indicates higher
priority. Assume all arrives at time zero. .
(A) FCFS (B) SJF
(C) Priority scheduling ~ CD) None of these
)"
20. Let Ri, R2, R3 be reader processes and let ~ and W2be writer processes
~ requesting shared data. If Ri is selected for access. Which of the statement is/are.
correct?
., (i) Mutual exclusion is necessary for R2 and R3
t (A) (i) and (iii) only (B) (ii) and (iii) only
(C) (iii) and (iv) only '(D) (il and (iv) only
(C) The number of a's is equal to the number of b's and b's always precede CIS
(D) The number of a's b's and CIS are sameand the a's precede b'sywhich
precede CIS
CAli rights reserved by GATE Forum Educational Services Pvt. Ltd. NO part of this booklet may be reproduced-or utilized in any form without the
written permission. Discussthisquestion paper at www.gatementor.¢om. 6
iI ~!!f~~1!~
I cs I Test 11):64 All India
•••••••••••••••. . . ..
Mock
--.-.-<
GATE Test " Series
.. ;:.-
,-
Then, find the grammar rules that generate the language accepted by the above
FA and the language accepted by the FA is:
L = {anbmcnjn.( lOOO,m ~ I}
26. What will be the resulting grammar after removal of left-recursion from the
following grammar?
E 4 EalEblalb
(A) E~aE'1 bE' ; E'4 aE' I bE' IE (8) E~aE' I bE'; E'~aEI bE\E
(C) E~aE' I bE'lE ; E'4 aE'1 bE' IE CD) E~~aE' I bE'; E'~a I b IE
~. AI. rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form wiihout the
w~itten perrnission. Discuss this question paper at www.gatementor.com. 7
GATEFOIUM ICS ITest ID:.'.64 AlllncUa Mock GATETest Sene.
~nyi~:.~,!Q,"",,:,:. . www.gateforum.com
;.:-
27, Which of the following is the deterministic finite automaton that recognizes the
same languages as the one recognized by the followlnq nondeterministic finite
automaton? 0,1
---.tG~()~· 0 (8)
(A)
(C)
------------------------_.-
@:AlI nghts ~esenJfJdh'/ G.ATE Forum Educational Services Pvt Ltd No. part of tr1iS. booklet may be reproduced or utilized in any form without the
wrItten !:)erm,ssion. rJrSC:~Ei:;; th;s question paper at www.qatementor.com. 8
;1 ~~~ I cs I Test ID: 64 AU mdia Mock GATE Test Series www.gateforum.com
,:g,',': "gOlS 'eser,'ed by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
Nr!~E'"; P9';:"~3icr Discuss this question paper at www.gatementor.com. 9
GATEFORUM I· I - -
~~~:~ CS Test ID: 64All india Mock GATE Test Series
f~.ii!,::~,!g. www'fl.atefo~,;,;;:com
31. The average successful search time taken by binary search on a sorted array of
12 items is:
- ..•.
32. Letf (n), 9 (n) and h (n) be the functions whose domain is a subset of the positive
integers. Such that f(n) = O(n2),g(n) = O(n3),h(n) = O(n4)then
Applying Master Theorem what will be the solution of the above recurrence?
34. For insertion sort on 3 elements consider the following decision tree:
1:3 \
[,
~\.
. ~1
..•
\
Each internal node is labeled by indices of array elements from their original
positions. Each leaf is labeled by the permutation of orders that the algorithm
determines.
~ All rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.com. 10
~~r~~
I cs I TestID: 64 All India Mock GATE Test Series www.gateforum.com·
36. Heap file consists of B data pages and (Avg) 200 records per page. The average
time taken to read or write a disk page is 15msec and the average time required
to process a record is 100 nanoseconds. If total cost of processing B pages is 300
rnsec, then the number of data in page B is:
(A) 40 (B) 20 (C) 30 (D) None of these
s r. The synchronous bus has a clock cycle of sons, and each bus transmission
takes 2 clock cycles. The data portion of the bus is 32 bits wide. Addresses are
" 32bits (word) long and returning data are 64bits (2 word) long. Calculate the
bandwidth of the bus when performing READ from a memory. Assume memory
access time is 100nanoseconds
(A) 21MB/sec (B) 28.57MB/sec (C) 19.68MB/sec (D) 23MB/sec
38. A pipeline system is affected by branch instruction. The penalty for the branch
instruction is 3 stall cycle .if 33% of instruction is branch instruction and pipeline
is operated with a clock of 10ns and providing the speed up factor 81 what will be
the numberof stage in pipeline?
(A) 32 (B) 16 (C) 4 (D) none of these
39. The value offollowing Boolean expression a(a + b + c)(a + b + c)(a + b + c)(a + bC)
C .A..1.r'oghts reserved by GATE Forum Educational Services Pvt Ltd. No part of this booklet may be reproduced or utilized in any form without the
~ permission. Discuss this question paper at www.qatementor.com.11
fil'r.JGATEFORUM I I
CS TesUD: 64 All india Mock GATE Test Series
1IIJ.!.I;~~i~:~r:n.g.~~;C::~
. . www.~ate(orulII.com
41. R be a binary relation on the set of all positive integers such that
Thus R is:
(A) anti-symmetric relation I (B) reflexive and symmetric relation
(C) equivalence relation .s.. (D) partial ordering relation
5 ~ aSISaia
Find the type of the grammar.
(A) Left linear (B) Right linear
(C) Neither left linear nor right linear (D) Data insufficient
© All rights reserved by GATE Forum Educational Services Pvt. ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.com. 12
GATEFORUM
Engineenng Success
••••••••
ICS ITest ID: 64 All India- Mock GATE Test Series
I ••••••
- www.gate(oruni.com
48. What should be the maximum distance between a node (A) and hub (8)?
(A) 137.75mt (8) 103.68mt (C) 207.36mt (D) 221.5mt
49. Considering the propagation delay between two nodes in bit times (if propagation
delay in bit times is fraction consider the nearest higher integer divisible by 8),
let A and 8 send frames at the same time i.e. at t=O, the frames collide, and then
A and 8 choose different values of K in the CSMA/CD algorithm. Suppose KA 0 =
and K8 =
l.If jam signal is of 48 bits then at what time A begins transmission?
(A) 288 (8) 168 (C) 234 (D) 192
Guidelines: J;
• Number of keys/page = 4
~,;;; co;.. -> .iESoS<"o-ed by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may t ~reproduced or utilized in any form without the
WTit:e~ =-=-----,ss.':I'1, :liscuss this question paper at www ..qatementor.com. 13
www.gateforum.com
• In case when leaf page is full, then while splitting the leaf page middle key is
placed in the index page in sorted order. Records with keys < middle key go
to left leaf page. Records with keys ~ middle key go to the right leaf page.
• While index page is full then while splitting index page, keys < middle key go
to left index page and keys> middle key go to the right index page. The
middle key goes to the next (higher level) index.
50. If key value 95 is added to the above 6+ tree then the root page of the resulting
6+ tree will contain .
(A) 60 (6) 25, 50, 60, 75 (C) 25, 5Q, 75, 80 (D) 80
51. If 70, 25 and 60 are deleted in order from the resulting tree then the root node of
the resulting 6+ tree will contain,
(A) 55, 80 (6) 25, 50, 65, 80 (C) 25, 50, 75, 85 (D) 75
52. Consider a program that takes 100 seconds to run on machine A, and spends
half its time in floating-point instructions. If speedup of performance is 1.714
(speed up is calculated by dividing performance of machine 6 by performance
of machine A) then what will be the value of n? (In case of fractional value of n
give nearest higher positive integer).
© All rights reserved by GATE Forum Educational Services Pvt ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Disouss this question paper at www.gatementor.com. 14
~~ I cs I Test ID: 64 AU India Mock GATE Test Series www.gate(orum.com
56. If a cyclist increases his speed by 2 krn/hr, he reaches his destination 10 minutes
early. If he decreases his speed by 4 krn/hr, he reaches his destination 30
minutes late. What is his usual speed?
(A) 12km/hr (B) 16km/hr (C) 18km/hr (D) None of these
58. Among the four words, choose the word that does not belong to the group.
(A) Poise (B) Polish (C) Sophistication (O)shoe
\.. .. ~
" '/,. p
'"f'. ,1.\
©AII rights reserved by GATE Forum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.com. 15
frr.IGATEFORUM I I _. -
.u.!:J~~~i:,:~r:,;g.~~~C:~~
CS Test ID: 64 All india Mock GATE Test Series 1V1V1V.gateforum.com
59. The question consists of five statements followed by options consisting of three
statements put together in a specific order. Choose the option which indicates a
""~ valid argument, that is, where the third statement is a conclusion drawn from the
preceding two statements.
A. Grapes are not sour. B. Some grapes are sour.
C. All sour things are tasteless. D. Some grapes are not tasteless.
E. No grape is tasteless.
(A) CEA (B) BDC (C) CBD (D) EAC
60. Choose the best word among the given options to fill in the blank in the
sentence.
While nurturing parents can compensate for adversity, cold or inconsistent
parents may it.
(A) exacerbate (B) neutralize (C) eradicate CD) ameliorate
61. Identify the pair of words, which has a relationship similar to Wave: Crest·
(A) Pinnacle: Nadir CB) Mountain: Peak
(C) Sea: Ocean (D) High: Low
Choose D; if the question cannot be answered even by using both the ••.. :i
statements together
62. Is the product of two given consecutive natural numbers greater than 927 ".,
! "".
1. The difference between the square of the larger number and the larger
number is equal to 90
II. The smaller number, when added 'by a squared even integer and then divided
by 2, gives the result 6.5
The chart below shows the data pertaining to sales of segment A cars, which
constitutes only three cars currently - A1, A2 and A3. The y axis shows the
percentage share for each car from the year 1990 to 1996.
© All rights reserved by GATE Forum EducationalServices Pvt. Ltd. No part of this booklet may be reproduced or utilized in any form without the
written permission. Discuss this question paper at www.gatementor.corTI. 16
=.
[iI~fH;~~~g~
I cs I Test ID: 64 All India Mock GATE Test Series www.gateforum.com
63. A fourth car, A4, launched in 1997, captures 20% market share in the first year
itself. If the number of A1s, A2s and A3s sold in 1997 increased by 10%, 12%
and 15% respectively, over the previous year, find the approximate number of
A4s sold in 1.997. The total number of cars sold in the A segment in 1996 was
182,000.
(A) 51190 (8) 73920
(C) 58300 (D) Data Insufficient
64. A contractor receives a certain sum that he uses for paying wages. His capital,
together with the weekly subsidy, would just enable him to pay 42 men for 52
weeks. If he had 60 men at the same wages, his capital together with the weekly
subsidy would just suffice for 13 weeks. How many men can be maintained for 26
weeks? '
(A) 84 (8) 21
(C) 48 (D) Data Insufficient
65. Read the following passage carefully, and answer the question that follows.
Studies show that there is hardly any difference between human beings and apes
in their psychological capacities. The studies are,~n_odoubt, inadequate.
The argument above assumes that
(A) Human beings and apes do not have highly developed psychological
capacities
(B) The studies on mammals are often misinterpreted
(C) Objectivity is nearly impossible in psychological studies
(D) There is a clear difference between the psychological capacities of human
beings and apes
, " /
-;G
. ~ All rights reservedby GATE Forum EducationalServices Pvt Ltd. No part of this booklet may be reproducedor utilized in any form without the
written permission. Discussthis question paper at www.gatementor.com. 17