Sie sind auf Seite 1von 17

|CS|Test ID: 152254 TarGATE15 www.gateforum.

com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 1
Q. No. 1 25 Carry One Mark Each

1. Consider the following graph G:














Which of the following order is the result of depth first search starting from the node 0?
(A) 01374526 (B) 01475263 (C) 02573146 (D) All of these

2. Map the following statements regarding quick sort with true(T) or false(F) respectively.
S1: Quick sort is an in-place sorting algorithm.
S2: Quick sort is stable.
S3: Quick sort performs best when numbers are sorted or almost sorted.
S4: The expected running time of quick sort, using randomized-partition is O(nlogn).
S5: It is an example of dynamic programming design technique.
(A) TFFFF (B) TTFTT (C) TFFTF (D) FTFTF

3. Which of the following algorithm design technique is used in the merge sort algorithm?
(A) Divide and conquer (B) Greedy method
(C) Dynamic programming (D) None of these

4. Consider the matrix
3 4
M
5 6
(
=
(

. Determine the trace of matrix M
-1
is________
5. ( ) Let f A, B A B = + . The simplified expression for the function
f(f(f(x+y,y),z),1) is
(A) x z + (B) xyz (C) xy z + (D) None of these




0
1 2
3 4 5 6
7
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 2
6. The output function Y for the below given circuit is___
(A) A B + AB + C
(B) AB + AB + C
(C) A + B + C
(D) AB + C

7. Which of the following is true?
(A) If a schedule is conflict serializable, then the schedule will also be view serializable
(B) If a schedule is view serializable, then the schedule will also be conflict serializable
(C) Both (A) and (B)
(D) None of these

8. Which of the following are the examples of DDL (Data Definition Language) commands?
(A) Drop, delete (B) Drop, create
(C) Drop, delete and create (D) Drop, update and create

9. The average page fault service time in a system is 20ms and memory access time is 200ns. If
page fault rate is 0.00001, Then the effective access time is_____________(in ns)

10. Evaluate
( )
2
y
1
lim
y 1

+
_____________

11. Which of the following is/are non-planar?
1. Complete bipartite graph
m,n
K where m 4, n 3 > <
2. Petersens graph
3. Kuratowskis graph
(A) 1,2,3 (B) 2 & 3 (C) 3 only (D) None of these













A
B
C
Y
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 3
12. Consider the following function:

( )
( )
function n
{ val 0
for i 1to n
{ if n 10000
for j 1to n
for k 1to n
val val 1
else
for j 1to n
val val 1
}
}
=
=
<=
=
=
= +
=
= +

The running time of the above function can best be described by T(n) =________
(A)
( )
3
n O (B)
( )
2
n O (C) ( ) n O (D) ( ) 1 O
13. Which of the following statement is false?(D
n
stands for set of divisors of n)
(A) The upper bound of the lattice | |
n
D ; / is n
(B) The lower bound of the lattice | |
n
D ; / is 1
(C) The lower bound of the lattice ( ) P A ; is _( |


(D) The lower bound of the lattice { } 1, 2, 4,8,16,...... ; / (

is 2

14. Which of the following may be an example of pre-emptive CPU scheduling?
(A) Switching from running to ready state
(B) Switching from running to waiting state due to an interrupt
(C) Termination of a process
(D) Unexpected abort() of a process

15. Which of the following is not true about process schedulers?
(A) Short term scheduler must be faster than long term scheduler
(B) Swap in/ out of processes is done by medium term scheduler
(C) Short term scheduler controls the degree of multiprogramming
(D) Long term scheduler brings processes to ready queue

16. Which of the following language(s) can validate textboxes, radio buttons and check boxes?
(A) JavaScript (B) DHTML (C) CSS (D) Both (A) & (B)
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 4
17. Which of the following is not true about XML?
(A) XML cannot separate data from HTML
(B) XML helps in data sharing
(C) XML increases the availability of the data
(D) XML helps in data transportation

18. Which of the following is/are language processor(s)?
(A) Assembler (B) Compiler (C) Interpreter (D) All of these

19. In which of the following protocol UDP is not used?
(A) Trivial File Transfer Protocol (TFTP)
(B) SNMP
(C) RIP
(D) FTP

20. Match the following:
(A) 205.16.37.47 I. Class A
(B) 155.11.1.0 II. Class B
(C) 230.54.256.56 III. Class C
(D) 255.255.255.255 IV. Class D
(E) 126.126.126.126 V. Class E
(F) 75.8.257.14 VI. Invalid IP
(A) A- IV B-II C-IV D-V E-I F-I
(B) A-III B-II C-VI D-V E-I F-VI
(C) A-III B-II C-IV D- IV E-VI F-I
(D) A-III B-II C-IV D-VI E-I F-VI

21. Which of the following statement is true?
(A) A repeater is an amplifier with no filtering capability
(B) Transparent bridges suffer from the loop problem but source routing bridges do not face
such problem
(C) Switches and routers have multiple broadcast domains
(D) A bridge can change the MAC addresses contained in the frame



|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 5
22. Which of the following denotes the time to be taken by a disk arm to locate the specific
address of a sector for getting information?
(A) Seek time (B) Response time
(C) Rotational latency (D) Search time

23. What is the correct order of levels for layered file system from high level to low level?
(A) application program logical file system basic file system file-organization
module I/O control devices
(B) application program file-organization module basic file systemlogical file
system I/O control devices
(C) application programlogical file systemfile-organization module basic file
systemI/O control devices
(D) application program file-organization module logical file system basic file
system I/O control devices

24. If A is an NP-Complete problem which can be reduced to B in polynomial time, then B is
(A) NP complete problem
(B) NP problem
(C) NP hard problem
(D) Computationally unsolvable problem

25. What will be the number of states of a DFA which accepts all strings containing at least 3 as
and at least 3 bs over the alphabet {a,b}?
(A) 9 (B) 12 (C) 15 (D) 16

















|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 6
Q. No. 26 55 Carry Two Marks Each

26. Consider the following fork and join construct.
S1;
Count=3
Fork L1
S2
S4
Fork L2
S5
Goto L3
L2: S6
Goto L3
L1: S3
L3: join count
S7

Which of the following is the correct precedence graph for above construct?

(A) (B)

















S1
S2 S6
S
4
S5 S
3
S7
S
1
S
3
S
2
S
4
S
6
S
5
S7
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 7


(C) (D)
















27. Consider the following program:
Queue q=new Queue();
Stack s=new Stack();
s.push(A);
s.push(B);
s.push(C);
s.push(D);
s.push(E);
q.enque(s.pop());
q.enque(s.pop());
q.enque(s.pop());
s.push(q.deque());
s.push(q.deque());
q.enque(D);
q.enque(E);
What will be the top element of the stack, rear and front of the queue respectively?
(A) top=E rear=E front=C (B) top=D rear=E front=E
(C) top=D rear=E front=C (D) top=D rear=C front=E



S
1
S2
S3
S4 S
5
S6
S
7
S
1
S
3
S
2
S
4
S
5
S
6
S
7
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 8
28. Consider the graph given below.






The number of different MSTs obtained using Prims algorithm starting from vertex a is
_________________

29. Which of the following can be degree sequence of simple graph?
I. 2, 3, 3, 3, 3, 3, 4, 5
II. 1, 3, 3, 4, 5, 6, 6
III. 1, 1, 3, 3, 5, 6, 7
IV. 1, 2, 3, 3, 4, 5, 6
(A) I only (B) II & IV (C) I, II & III (D) I & IV

30. What will be the output of the following program using dynamic scope and call by reference
respectively?
int n;
void a(int *x){
x++;
printf(%d,x);
}
void b(int *n){
n=10;
a(n);
}
main(){
int n=2;
a(n);
b(n);
}
(A) 3 4 (B) 2 3 (C) 3 11 (D) 2 11




a
b
c
d e
f
g
h
1 2
2
3
4
4
5
2
1
3
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 9
31. Consider a group of 73 persons. Then which of the following is necessarily true?
(A) At least 10 persons were born in the same month
(B) At least two months should have 8 persons born in
(C) At least one month should have 7 persons born in
(D) At most 6 persons were born in every month

32. The number of non-final states in the DFA which accepts all the strings of as and bs ending
with ab over the alphabet{a,b} is_____________

33. Which of the following grammar generates all kinds of binary numbers (which may also
contain a decimal point)?
(A) S L.L (B) S L.L| L (C) S L.L| L (D) None of these

L LB| B
B 0| 1


L LB
B 0| 1


L LB| B
B 0| 1



34. Consider a 256KB direct mapped byte addressable cache. If one word is 4 bytes and each
cache block contains 16 words, then determine the number of bits required for tag.(Assume
that physical address of computer is 32 bits)
(A) 12 (B) 13 (C) 14 (D) 15

35. The following binary word W = 10001011101001 is stored in a 14 bit register. What are the
decimal numbers represented by W in each of the unsigned binary, signed-magnitude and
twos complement codes respectively?
(A) 8937, -745, -7447 (B) 8937, - 745, -745
(C) 8937, - 745, 7447 (D) None of these














|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 10
36. Consider the following graph G:








If the following graph is produced by a depth-first search on G then







What will be the tree edges(T), back edges(B),forward edges(F) and Cross edges(C) of the
graph G?
(A) T: <AB>,<BC>,<CE>,<DE> (B) T: <AB>,<BC>,<CE>,<AD>
B: <EB> B: <EB>
F: <AE> F: <AE>
C: <DE> C: <DE>
(C) T: <AB>,<BC>,<CE>,<AD> (D) T: <AB>,<BC>,<CE>,<DE>
B: <EB> B: <EB>
F: <DE> F: <DE>
C: <AE> C: <AE>











A
B C
D E
A
A
B C
E D
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 11
37. Consider a hash table with size=11, hash function h(key)=key%11; Collisions are resolved
using linear probing. Following operations are performed sequentially:
Insert(21);
Insert(57);
Insert(37);
Insert(16);
Insert(48);
Insert(17);
Insert(27);
Insert(30);
Insert(54);
Insert(34);
Insert(24);
Now push all elements starting from top of the hash table to the end onto a stack s. Now if the
following code is executed,
for(i=0; i<number of collisions; i++){
a=pop(s);
}
Then the final value of a is____________

38. Consider the following predicate symbols:
S(x,y) : x is a sister of y
B(x,y) : x is a brother of y
O(x,y) : x is older than y
And constant symbols are
j : John
Which of the following sentences is represented by predicate logic formula?
( ) ( ) ( ) ( ) ( ) x y S x, j B y, j O x, y . ?
(A) All of Johns brothers are older than his sisters
(B) All of Johns sisters are older than his brothers
(C) All of Johns sisters are older than one of his brothers
(D) One of johns sisters is older than his brothers






|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 12
39. The transitions of a pushdown automata accepting L are given below:
(q0,a,z0)=(q1,az0)
(q1,a,a)=(q1,aa)
(q1,b,a)=(q2, e)
(q2,b,a)=(q2, e)
(q2, e,z0)=(q2, e)
(q0, e,z0)=(q0, e)
Find the language L that the above PDA accepts by empty stack where z0 is the start symbol.
(A) Language which accepts all strings having equal number of as and bs
(B) Language which accepts all strings in the form of a
n
b
n
,n0
(C) Language which accepts all strings in the form of b
n
a
n
,n0
(D) Language which accepts all strings with even number of as and bs



40. Find the highest normal form of relation R(A,B,C,D) with FD set F={AB D,
AC BD, B C, A C}
(A) 1-NF (B) 2-NF (C) 3-NF (D) BCNF

41. In getting the minimal expression for the function f(A,B,C,D)= ( ) 1,5,6,7,11,12,13,15 , E
which of the following is not a prime implicant?
(A) ABC' (B) A' C' D (C) BD (D) A' BD

42. Consider the 4-to-1 multiplexer with two lines S
1
and S
0
given below







The minimal sum of-products form of the Boolean expression for the output F of the
multiplexer is
(A) ABC ABC AB + + (B) AC BC +
(C) A B C + + (D) A B C
C
0
1
C
0
1
2
3
1
s
0
s
4 to 1
Multiplexer

F
B A
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 13
43. In basic timestamp ordering scheme, say a transaction T issues write(Q) operation, then
which of the following is true? (TS: time stamp)
(A) If TS (T) < Read-TS (Q), then write is rejected and T is rolled back
(B) If TS (T) < write-TS (Q), then write is rejected and T is rolled back
(C) Both (A) and (B)
(D) None of these

44. The size of key field along with the record pointer of a B-tree is 6B. and disk blocks are of
size 512 B and block pointers are of size 4B. Then the degree of the B-tree is ____________


45. If x is uniform random variable with mean = 1 and variance = 4/3 find p(x<0)
is_______________

46. If the number of elements in a set A is 11, then how many anti symmetric relations are
possible on A?
(A)
11 55
2 3 (B)
11
2 (C) 11! (D)
11 11
2 3


47. Consider the following statements:
S
1
: Distance vector routing is based on Dijkstras algorithm.
S
2
: In link state routing, if a packet with a sequence number higher than the highest one seen
so far ever arrives, then it is rejected.
S
3
: The age field in link state packets is used to make sure no packet can get lost and live for
an indefinite period of time.
S
4
: Flooding technique is used in Distance vector routing.
S
5
: Distance vector routing is a non-adaptive routing algorithm.
Which of the above statement(s) is/are true?
(A) S
3
only (B) S
1
, S
2
and S
4
(C) S
1
, S
2
and S
3
(D) S
2
, S
4
and S
5
















|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 14
48. Two stations A and B are connected via a point to point link and exchange frames with
m=3 where m is the size of the sequence number field in bits. Station A sends frames in the
following order.



















What will be the buffer frames in the current window of A just after the time-out and what
are the values of X and Y if go-back-n ARQ sliding window protocol is used?
(A) Buffer frames of A: 2345601 X=2 Y=3
(B) Buffer frames of A: 1234567 X=1 Y=2
(C) Buffer frames of A: 2345670 X=2 Y=3
(D) Buffer frames of A: 1234560 X=1 Y=2

49. Using RSA public key cryptosystem, if P=13, Q=31, and d=7 then e = __________











Sender A
Receiver B
Frame 0
Lost Ack 1
Frame 1
Ack 2
Frame 2
lost
Frame 3
Frame 4
Frame X
Ack Y
Time-out
Start timer
Lost Nak2
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 15
50. Consider the following code segment

( )
( )
( )
main
{
int a 5;
f a, a ;
pr int a;
}
f int x, int y
{
x ;
y y 15;
}
=

= +


What will be printed if call by copy restore mechanism is used for passing parameters?
(A) 4 (B) 20
(C) Both (A) and (B) (D) either (A) or (B)

51. Consider the following grammar:
SAB|C
AaAb|ab
BcBd|cd
CaCd|aDd
DbDc|bc

How many parse trees can be generated to get the string aabbccdd from above grammar?
(A) 1 (B) 2 (C) 3 (D) 4

52. The latencies for each stage in a single cycle processor is given as




The speedup obtained from pipelining is ____

53. Consider a CPU with 128 instructions in the instruction set, where each operation needs 8
cycles. If 60 control signals need to be generated by the control unit. If single address field
format is used then what is the minimum size of the control word, if horizontal micro
programming is used for control unit?
(A) 128 (B) 67 (C) 17 (D) 70
IF ID ALU MEM WB
40ns 15ns 40ns 40ns 15ns
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 16
54. A Company is planning to design a JAVA compiler and has estimated the total source code to
be of 1, 00, 000 LOC. Assume that the project follows Basic COCOMO model and has to be
developed within tight constraints. What will be the total effort required?
(A) 904 PM (B) 896 PM (C) 888 PM (D) 880 PM

55. The minimum number of nodes in an AVL tree of height 10 is __________.

Q. No. 56 60 Carry One Mark Each

56. A container holds 150 litres of 80% concentrated salt solution. 5 litres of the solution is
withdrawn and refilled with water. Next, 10 litres is withdrawn and refilled with water and so
on (15 lit, 20 lit, 25 lit in successive turns). After how many refills would the concentration of
salt in the mixture would fall below 30% for the first time?
(A) 5 (B) 6 (C) 7 (D) 8

57. Which of the following is the closest in meaning to the word EXAGGERATE?
(A) minimize (B)decrease (C) overstate (D) understate

Directions for Question 58: Select the option where the final statement can be deduced
logically from the previous two statements ignoring the common known facts.
58. (I) All musicians are hard working. All musicians are crazy. All hardworking are crazy.
(II) All musicians are passionate. All musicians are crazy. Some crazy are passionate.
(III) All mathematicians are egg-heads. All egg-heads are crazy. All mathematicians are
crazy.
(IV) All mathematicians are egg-heads. All egg-heads are prodigies. All prodigies that are
egg-heads are mathematicians.
(A) Only I, III and IV (B) Only II, III and IV
(C) Only II and III (D) All of these

59. Wayne Rooney after netting the ball in the final seconds of the game.
(A) restate (B) emphasized (C) encompassed (D) exulted

60. Which of the following is most nearly opposite in meaning to the word RELUCTANT?
(A) resistant (B) hesitate (C) willing (D) abuse

Q. No. 61 65 Carry Two Marks Each

61. If | | X denotes the greatest integer less than or equal to X, then find the sum for the given
expression.

1 1 1 2 1 3 1 4 1 216
.......................
4 108 4 108 4 108 4 108 4 108
( ( ( ( (
+ + + + + + + + + +
( ( ( ( (


(A) 108 (B) 164 (C) 154 (D) None of these
|CS|Test ID: 152254 TarGATE15 www.gateforum.com
All rights reserved by Gateforum Educational Services Pvt. Ltd. No part of this booklet may be reproduced or utili zed in any form without the
written permission. Discuss this question paper at www.gatementor.com. 17
62. Find the remainder in the following division.

120120120120120120120120...............................................278times
72

(A) 0 (B) 24 (C) 48 (D) None of these

63. A, B and C (three friends) work at a construction site. A can do a piece of work in 10 days, B
can do the same piece of work in 12 days and C in 15 days. Another group of friends dont
like them and they try cause problems by delaying their work by deconstructing the work. D
can destruct As work 20 days, E can destruct Bs work in 24 days and F can destruct Cs
work in 30 days. A, B and C work on alternate days with A starting the work. D, E and F plan
to delay their work and cause maximum damage. How should they pair up themselves with
A, B and C to ensure maximum destruction, where only one of them can pair up with one of
their rival group?
(A) AD, BE and CF (B) AF, BD and CE (C) AE, BF and CD (D) Either of these

64. The probability of a shooter hitting the target is
1
3
and three shots at the bulls eye are needed
to win the game. What could be the least number of shots for the shooter to give him more
than half chance of winning the game?
(A) 5 (B) 6 (C) 7 (D) 8

65. It may seem minor when compared to heart or liver disease, but olfactory dysfunction can
seriously impair people in their day-to-day activities and occupation, increase their risk of
injury or even death, and reduce their overall quality of life, study researchers said. These
deficits may not only reduce patients' enjoyment of foods, but may also place them at risk for
long term nutritional or health issues. Individuals may alter food choices and intake, resulting
in weight loss, challenged immunity and impaired nutritional status all of which are
commonly observed in patients with chronic alcoholism.
Which of the following best sums up the passage?
(A) Chronic alcoholism is much severe than heart or liver disease.
(B) Chronic alcoholism is as severe as other heart or liver disease.
(C) Chronic alcoholism can do equal amount of damage, if not more to the human body as
any other heart or liver disease affecting their overall quality of lives.
(D) The effects of chronic alcoholism is much more than any other disease in human body.