Está en la página 1de 13

CSTest ID: 152255 TarGATE15 www.gateforum.

com

Q. No. 1 25 Carry One Mark Each

1. Consider the following two languages:

L1 w | w has equal number of 0's and 1's over {0,1, 2}

L2 0n1m 2m n m, n 1 over {0,1, 2}

Which of the above language(s) is/are regular?


(A) L1 only (B) L2 only
(C) Both L1 and L2 (D) Neither L1 nor L2

2. Consider the following grammar G:


SaAb|aC
S
Ababc
aCCa|b
The above grammar belongs to which of the following type?
(A) Type-0 but not type-1 (B) Type-1 but not type-2
(C) Type-2 but not type-3 (D) None of these

3. Consider the following graph:


a

c b d

f
Which of the following are breadth first traversals of the given graph?
I. acbdfe
II. adbcfe
III. abcdef
IV. adcbef
V. acbdef
(A) I and III (B) I, II and III (C) I,II,III and IV (D) I,II,III,IV and V

All rights reserved by Gateforum 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
CSTest ID: 152255 TarGATE15 www.gateforum.com

4. By using Prims algorithm starting with vertex a for the following graph, then the cost of
MST is__________________
8 7
b c d

9
4 2
a 1 4 1 e
i
1 1
8
7 6
1
h 2
1 g f

5. What will be the output of the following program?


main(){
static int i=0;
i++;
if(i5){
int i=3;
printf("\n%d",i);
main();
}
else
exit(1);
}
(A) 1 2 3 4 5
(B) 3 3 3 3 3
(C) Compiler error
(D) Infinite loop until stack overflows

a 3
If Eigen values of the matrix A
6
6. are 3 and -7, then the values of a and b are
b
respectively
(A) 1, 2 (B) 2, 3 (C) 3, 4 (D) 1, -1

7. Which of the following represents a tautology?


(A) P' Q' P' Q' (B) P Q'

(C) P Q Q P (D) P' P Q' Q

All rights reserved by Gateforum 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
CSTest ID: 152255 TarGATE15 www.gateforum.com

8. Consider the following graphs:

G1 G2 G3 G4

Which of the following is false?


(A) G1, G3, G4 are sub graphs of G2
(B) G1 and G4 are isomorphic to each other
(C) G3 and G4 are isomorphic to each other
(D) G1 is self-complementing graph

9. Which of the following is not true about JavaScript?


(A) JavaScript is a scripting language
(B) JavaScript is case-sensitive
(C) JavaScript is an interpreted language
(D) None of these

10. Which of the following is true?


(A) <!DOCTYPE> is an HTML tag.
(B) <!DOCTYPE> is compulsory for every web page.
(C) <!DOCTYPE> tells the browser about the version in which the HTML code is written.
(D) None of these

11. For the TCP timer management, for each connection TCP maintains RTT, the best estimate
of current round trip time to the destination is to be determined. When a segment is sent,
timer is started, both to see how long the acknowledgment takes and to trigger retransmission
if it takes too long. If the value of RTT of TCP is 10 ms and ACK comes after 20 ms then the
new estimated value of RTT is __________ (in ms) (Assume is the smoothing factor
with value of ).

12. A 4000 m long LAN uses CSMA/CD. The signal travels along the wire at 108 m / sec . If the
minimum packet size used on this network is 160bits then the bandwidth of this network is
______________ (in KBPS)

13. The system of equations 5x 2y 3z 0, 2x 5y 3z 0, 2x 3y 5z 0 is


(A) Homogeneous and admits no solutions
(B) Homogeneous and admits infinite solutions
(C) Homogeneous and admits only trivial solutions
(D) None of these

All rights reserved by Gateforum 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. 3
CSTest ID: 152255 TarGATE15 www.gateforum.com

14. Let P A B, then


What is the value of the following expression?
A P A B P A P
(A) A (B) B (C) A B (D) None of these

15. If n+3 bits are used to denote fixed point signed numbers in 2s complement notification then
what is the range it covers?
(A) 2n 1 to 2n 1 1 (B) 2n 1 to 2n 1
(C) 2n 2 to 2n 2 (D) 2n 2 to 2n 2 1

16. The k-map of a function is given below. The POS form of the function is

(A) X Y Y Z Y Z
YZ
X 00 01 11 10
(B) XY YZ YZ 0 0 0

(C) Y Z Y Z X Y 1 0 0 0

(D) YZ YZ XY

17. Consider the following table:


X Y Z
a b b
f d e
d e b
f e c
c b b
Which of the following is a valid functional dependency with respect to the above table?
(A) YZ X (B) XZ Y
(C) Both (A) and (B) (D) None of these

18. The aggregate function that does not ignore NULL values in its input collection is
(A) Avg (B) Sum (C) Max (D) None of these

19. With respect to IPC (Inter Process Communication), which of the following statement(s)
is/are true?
S1: Direct communication method uses send () and receive () calls.
S2: Mailbox communication is a way of indirect communication where processes
communicate by sending messages via mailbox.
(A) S1 Only (B) S2 Only (C) Both S1 & S2 (D) Neither S1 nor S2
All rights reserved by Gateforum 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. 4
CSTest ID: 152255 TarGATE15 www.gateforum.com

20. Which of the following is the hardware based solution for synchronization?
(A) Test and set (B) Swap (C) Both (A) & (B) (D) None of these

21. Which of the following is true about pre-paging?


(A) Under pre-paging the system loads all pages of a process's working-set into memory
before the process is restarted
(B) Pre-paging increases the page fault rate of reloaded processes
(C) Pre-paging generally degrades CPU efficiency
(D) All of these

22. Which of the following statement(s) is/are true?


S1: Floyd-warshall algorithm has O(V3) time complexity.
S2: Dijkstra's algorithm for solving shortest path problem has a time complexity of O( | E | + |
V | log | V | ) in the worst case.

(A) S1 Only (B) S2 Only (C) Both S1 & S2 (D) Neither S1 nor S2

23. Express the following recurrence relation in asymptotic notation.


n
T n 3T n
3
(A) n (B) n 2 (C) n log n (D) None of these

24. To represent 256 control signals in horizontal microprogramming, then the number of bits
required is ______________
(A) 7 (B) 8 (C) 128 (D) 256

25. CLAC (Clear Accumulator) is an example of which of the following addressing modes?
(A) Immediate mode (B) Implicit mode
(C) Direct mode (D) Register direct mode

Q. No. 26 55 Carry Two Marks Each


26. Match the following:
A. Distance vector routing I. BGP 1. Intra-domain routing
B. Link state routing II. RIP 2. Inter-domain routing
C. Path vector protocol III. OSPF
(A) A-III-1, B-II-1, C-I-2 (B) A-II-1, B-III-1, C-I-2
(C) A-I-1, B-II-1, C-III-2 (D) A-I-1, B-II-2, C-III-2

All rights reserved by Gateforum 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
CSTest ID: 152255 TarGATE15 www.gateforum.com

27. The language which describes all nonempty strings of as and bs that end with a will be
generated by which of the following grammar?
(A) S b (B) S b
Sa Sa
S bS S aS
(C) S a (D) S a
S aS S aS
Sb S bS

28. Consider the language L = (a+b)*b(a+ab)*


How many strings are there of length less than 4 in L?
(A) 10 (B) 11 (C) 12 (D) 13

29. If the transition table of a DFA is as follows


a b
A(start) B C
B B D
C B C
D B E
E(final) B C

Then the number of states of the minimized DFA is_____________

30. Find the total derivative of x 2 y with respect to x when x and y are connected by a relation
x 2 xy y2 1
x 2y 2x y
(A) 2xy y2 (B) 2xy x 2
2x y x 2y
2x y 2y x
(C) 2xy xy (D) 2xy x 2
x 2y xy

31. Consider the set S={0,1, 2, 3, 4, 5, 6, 7, 8) with an operation 9 (multiplication modulo 9).
Which of the following is false with respect to the algebraic structure (S, 9 )?
(A) Inverse of elements 0, 3 & 6 does not exist
(B) (S, 9 ) is not a group
(C) Identity of S is 1
(D) (S, 9 ) is not a monoid

All rights reserved by Gateforum 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. 6
CSTest ID: 152255 TarGATE15 www.gateforum.com

32. Find the number of rectangles and squares in a 8 by 8 chess board respectively.
(Do not take square as rectangle)
(A) 1296, 204 (B) 1092, 204 (C) 204, 1092 (D) 204, 1296

33. Following elements are added in the given order in a max heap 1, 7, 2, 4, 8, 18, 5 maintaining
max heap property after every insertion. The number of interchanges in heapifying
is_______________

34. What will be the output after the 3rd pass of selection sort to sort the following number
sequence in ascending order?
9 2 1 5 6 3 4

(A) 1 2 3 5 6 9 4
(B) 1 2 5 9 6 3 4
(C) 1 2 3 6 9 5 4
(D) 1 2 3 4 9 6 5

35. A machine with expanding opcode technique has 16 bit instructions and 6 bit addresses and it
supports one address and two address instructions. If there are 10 two address instructions,
then determine the maximum number of one address instructions is____________

36. A pipeline system can overlap all instructions except branch instruction which introduce 4
stall cycles. If 30% of instructions are branch instructions then determine the throughput of
pipelined system where clock duration is 10 ns___________________

37. Consider the following database:


works (employee_name, company_name, salary)
company (company_name, city)
Which of the following SQL query is used to find the company that has the highest number of
employees? (Highlighted attributes are primary keys)
(A) select company_name from company group by company_name having count (distinct
employee_name) >= all (select count (distinct employee_name) from works group by
company_name)
(B) select company_name from works group by company_name having count (distinct
employee_name) > all (select count (distinct employee_name) from
works group by company_name)
(C) select company_name from works group by company_name having count (distinct
employee_name) > =all (select count (distinct employee_name) from works group by
company_name)
(D) select company_name from works group by company_name having count (distinct
employee_name) >= all (select count (distinct employee_name) from works group by
employee_name)

All rights reserved by Gateforum 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. 7
CSTest ID: 152255 TarGATE15 www.gateforum.com

38. The relation R (A, B, C, D, E) with the FD set { A BC, CD E, B D, E A} , then


the candidate keys present for the relation is________________

39. Which of the following statement is false regarding two phase locking protocol?
(A) Ensures conflict serializability
(B) Transactions can be serialized in the order of their lock points
(C) Doesnt ensure freedom from deadlock
(D) Cascading rollback is not possible

40. Consider the following circuit.

f1

f2
f x, y, z 1, 4,5
f3

f1 x, y, z 0,1,3,5
f 2 x, y, z 4,5
Then f 3 x, y, z can be

(A) 1,4,5 (B) 0,1,3,5 (C) 1,4,5 (D) None of these

41. If TFF 15n sec, Tex OR 5nsec, Then the maximum usable clock frequency is_________(in
MHz)

D0 Q0 D1 Q1 D2 Q2

CLK

42. Consider the following SDT


S aSg g 3; pr int g ;
| bSg g * 2; pr int g ;
| g 0;pr int g ;

A shift reduce parser evaluates the semantic action of a production whenever the production
is reduced. Which of the following is printed by above SDT on input string aaababb?
(A) 0 0 3 6 9 12 15 (B) 0 0 0 3 6 9 12 15
(C) 0 0 0 3 6 9 12 (D) 0 0 3 9 6 12 15

All rights reserved by Gateforum 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. 8
CSTest ID: 152255 TarGATE15 www.gateforum.com

43. X and Y are the random variables and expectation (X) = 30, variance (X) = 9. Find positive
values of a and b such that Y = aX - b and expectation (Y) = 0 and variance (Y) = 1.
1 1 10 1 10 1
(A) ,10 (B) , (C) , (D) ,10
0 9 3 3 3 3

44. If A = {a, b, c, d} and a relation R on A is given as, R = {(a, d) , (b, a) , (b, c), (c, a), (c, d),
(d, c)} then find transitive closure of R.
(A) a,a, , a,c , a,d , b,a , b,c , b,d , c,a , c,d , d,c
(B) a,a , a,c , b,d , c,c , d,a , d,d

(C) A A a,a , b,b , c,b , d,b


(D) A A a,b , b,b , c,b , d,b

45. The edge connectivity and vertex connectivity of the following graph are respectively
5

1 2

8 6

3 4

7
(A) 6,4 (B) 4,4 (C) 4,6 (D) 6,6

46. Which of the following statement(s) is/are true?


S1: Every cycle graph, complete graph and wheel graph is Hamiltonian.
S2: Complete bipartite graph Km,n is Hamiltonian if m=n>1.
(A) Both S1 & S2 (B) Neither S1 nor S2
(C) S1 Only (D) S2 Only

47. Consider a two level cache with the following information:


Hit ratio of L1 cache: 80%
Hit ratio of L2 cache: 90%
Access time of L1 cache: 2ns
Access time of L2 cache: 10ns
Access time of main memory: 60ns
Then the effective access time is_____________(in ns)

All rights reserved by Gateforum 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. 9
CSTest ID: 152255 TarGATE15 www.gateforum.com

48. Suppose that the head of a moving-head disk with 200 tracks numbered 0 to 199 is currently
serving a request at track 53. Ordered disk queues with requests involving tracks are shown
below.
98, 183, 37, 122, 14, 124, 65, and 67
Then the total number of head movements needed to satisfy these requests for the SSTF disk-
scheduling algorithm is_____________

49. A hard disk rotates at 6000 rpm. It has 2 surfaces with 128 tracks each. Each track has 256
sectors and each sector can store 512bytes. Then the average rotational latency of hard disk
is____________ (in ms)

50. A computer system has 4K word cache organized in a block-set-associative manner, with 4
blocks per set, 64 words per block. The number of bits in the SET and WORD fields of the
main memory address format are respectively
(A) 15, 4 (B) 6, 4 (C) 7, 2 (D) 4, 6

51. The profit P obtained for the following instance of fractional knapsack problem if the
strategy is to be greedy on pi/wi ratio, with knapsack weight of 11 is _______________

i 1 2 3 4 5
pi 3 6 8 1 2
wi 6 3 5 1 4

52. Consider a token ring topology with 15 stations which are equally spaced. When a station
gets the token it is allowed to send one frame of fixed size of 2000 bits.
If the maximum utilization of the token ring is 0.903 and ring capacity 50 KBps, then the ring
latency is____________(in ms)

53. A 1 Mbps Satellite link connects 2 ground stations. The altitude of the satellite is 3000 Km
and speed of the signal is speed of light in the vacuum. For a channel utilization of 50%, if
Go Back -127 SWP is used, Then the packet size is________________( in Bytes)

54. If the number of vertices, edges in the control flow graph of a code is 5 and 6 respectively,
then the cyclomatic complexity of the code is _________________

55. Let H be an empty hash table of size 6 with a hash function of (4x+3)mod6. Which of the
following is the contents of hash table if 1,6,12,3 are inserted in order into hash table and
assume linear probing scheme is used for collision resolution.
(A) , 1, , 6, 12, 3 (B) , 1, 6 , ,12, 3 (C) , 1, 6, 12, , 3 (D) 1, , 6, 12, 3 ,

Q. No. 56 60 Carry One Mark Each


56. A dishonest dealer professes to sell his article at cost price but he uses a false weight with
which he cheats 30% while buying and 20% while selling. Find his profit percentage in the
transaction.
(A) 50% (B) 62.5% (C) 41.67% (D) 43.33%

All rights reserved by Gateforum 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
CSTest ID: 152255 TarGATE15 www.gateforum.com

57. Choose the word from the options given below that is most nearly in meaning to the given
word:
MORIBUND
(A) lively (B) commotion (C) stagnant (D) dejected

58. Choose the word from the options given below that is most nearly opposite in meaning to the
given word:
RECALCITRANT
(A) refractory (B) repulsive (C) obedient (D) considerable

59. Choose the most appropriate word from the options given below to complete the following
sentence:
Autumn 2003 marked the start of the 50th anniversary . of Dylan
Thomas ' untimely death.
(A) celebration (B) congress
(C) commemorations (D) proceedings

60. Directions for the Question 65: Considering the statements a, b and c to be true, choose the
conclusions which are definitely true from the statements disregarding commonly known
facts.
(a) All Ts are Ss
(b) All Ss are Rs
(C) All Rs are Us
Conclusions:
(i) Some Us are Ts
(ii) Some Us are Ss
(iii) Some Rs are Ss
(A) Only (ii) follows (B) Only (i) & (ii) follows
(C) All follows (D) None follows

Q. No. 61 65 Carry Two Marks Each

61. Two explosions took place at a time interval of 60 minutes at same location. A biker moving
away from the place heard the first explosion when he was at place X and heard the next
explosion at a place Y after 63 minutes. What is the distance between the two places X and
Y, if the speed of sound was 267 m/s?
(A) 27.9 Km (B) 48.6 Km (C) 48.06 Km (D) 52.06 Km

62. What could be the maximum number of distinct divisions a plane can be divided using 101
lines?
(A) 202 (B) 203 (C) 5151 (D) 5152

All rights reserved by Gateforum 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. 11
CSTest ID: 152255 TarGATE15 www.gateforum.com

63. Information for Question:

Study the following graph and answer the question given below it

(in thousand bags)


Target
Actual

400
(in thousand bags)

325
300 300
250
225 225
200 200 185
175
175
150
95

100 75

0
1996-97 1997-98 1998-99 1999-00 2000-01 2001-02

years

What is the ratio of number of years in which the actual production was above the average
production to the number of years whose actual production is below the average production?
(A) 2 : 1 (B) 1 : 1 (C) 1 : 2 (D) 3 : 2

64. Two containers contain wine and water in the ratio 7:6 and 7:2 respectively. What quantity
(approximately) from the first container should be mixed with 714.42 litres of the second
such that the new mixture contains wine and water in the ratio 7:3?
(A) 714 litres (B) 388 litres (C) 398 litres (D) 344 litres

65. Select the best alternative out of the given options:


(A) In addition of enhancing their reputation through strategic use of high profit funds for
customers, companies are sponsoring social initiatives to open new markets.
(B) In addition to having enhance their reputation through strategic use of high profit funds
for customers, companies are sponsoring social initiatives to open new markets.
(C) In addition to enhancing their reputation through strategic use of high profit funds for
customers, companies are sponsoring social initiatives to open new markets.
(D) In addition of enhancing their reputations through strategic use of high profit funds for
customers, companies are sponsoring social initiatives to open new markets.

All rights reserved by Gateforum 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
CSTest ID: 152255 TarGATE15 www.gateforum.com

All rights reserved by Gateforum 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. 13

También podría gustarte