GATE-2015 AnswerKeys
GATE-2015 AnswerKeys
GATE-2015 AnswerKeys
GATE 2015
Computer Science & Information Technology (CSIT)
DATE: 07/02/2015
01.
01.
02.
02.
03.
03.
04.
04.
05.
06.
06.
07.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:3:
09.
P
r
q
s
(A)
(C)
07.
q r
(B)
qr
(D)
qr
q r
q r 2
qr
Ans: (B)
09.
08.
08.
10.
10.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:4:
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:5:
01.
01.
02.
Ans: (A)
With reference to the B+ tree index of order
1 shown below, the minimum number of
nodes (including the Root node) that must
be fetched in order to satisfy the following
query: Get all records a search key greater
than or equal to 7 and less than 15 is ____.
{
int x = 1, k;
if (n = = 1) return x;
for (k =1; k<n; ++k)
x = x + fun(k) * fun(nk);
return x;
02.
03.
03.
04.
04.
05.
}
The return value of fun(5) is _____.
Ans: 51
An unordered list contains n distinct
elements. The number of comparisons to
find an element in this list that is neither
maximum nor minimum is
(A) O(n log n)
(B) O(n)
(C) O(log n)
(D) O(1)
Ans: (D)
The cardinality of the power set of
{0, 1, 2,, 10} is _______.
Ans: 2048
Consider two decision problems Q1, Q2
such that Q1 reduces in polynomial time to
3SAT and 3SAT reduces in polynomial
time to Q2. Then which one of the following
is consistent with the above statement?
(A) Q1 is in NP, Q2 is NP hard.
(B) Q2 is in NP, Q1 is NP hard.
(C) Both Q1 and Q2 in NP.
(D) Both Q1 and Q2 are NP hard.
9
5
1
13 17
5
9 11
13 15
17
06.
Ans: 5
07.
07.
08.
08.
09.
each.
Assume
that
the
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:6:
acknowledgement
has
negligible
at
nodes
are
negligible.
The
11.
12.
Ans: 12
10.
Consider
the
following
transaction
10.
(A) Atomicity
(C) Isolation
Ans: (B)
(B) Consistency
(D) Durability
12.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:7:
13.
13.
14.
14.
15.
15.
16.
16.
17.
17.
18.
18.
19.
19.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:8:
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:9:
20.
20.
23.
21.
The larger
4
matrix
2
21.
Ans: 6
22.
22.
24.
24.
25.
25.
26.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 10 :
128.96.164.0
0.0.0.0
Group I
(i) 128.96.171.92
(ii) 128.96.167.151
(iii) 128.96.163.151
(iv) 128.96.165.121
27.
28.
26.
27.
write Non-convergence
else
write return xb
end if
(A) xb (fb f(xa)) fb/ (xb xa)
(B) xa (fa f(xa)) fa/ xb xa)
(C) xb (xb xa)fb/ (fb f(xa))
(D) xa (xb xa) fa/ (fb f(xa))
Ans: (C)
Consider the following routing table at an
IP router.
Network No.
128.96.170.0
128.96.168.0
128.96.166.0
Net Mask
255.255.254.0
255.255.254.0
255.255.254.0
Next Hop
Interface 0
Interface 1
R2
R3
R4
// = convergence indicator
i = i + 1 // update counter
xt = ? // missing expression for
xa = xb
xb = xt // intermediate value
fb = f(xb) // function value at new xb
end while
255.255.252.0
Default
28.
29.
29.
Group II
(a) Interface 0
(b) Interface 1
(c) R2
(d) R3
(e) R4
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 11 :
30.
( P(x,y) R(x,y)]
30.
31.
31.
32.
33.
33.
34.
34.
35.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 12 :
35.
36.
36.
(4) t2 = t1+ j
(5) t3 = 4 * t2
(6) t4 = t3
(7) a[t4] = 1
(8) j = j + 1
(9) if j < = 5 goto (3)
(10) i = i + 1
(11) if i < 5 goto (2)
The number of nodes and edges in the
control-flow-graph constructed for the
above code, respectively, are
(A) 5 and 7
(B) 6 and 7
(C) 5 and 5
(D) 7 and 8
Ans: (B)
37.
39.
37.
38.
38.
39.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 13 :
40.
40.
41.
41.
42.
43.
43.
42.
44.
44.
(B) L2 only
(D) L3 only
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 14 :
45.
45.
46.
46.
47.
47.
48.
48.
49.
49.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 15 :
50.
50.
51.
{
int left_end = partition(a, n);
if (left_end+1 = =k)
{
Return a[left_end];
}
if(left_end+1) > k)
{
return kth_smallest(________);
}
else
51.
52.
{
return kth_smallest(________);
}
}
The missing argument lists are respectively
ACE Engineering Academy
52.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 16 :
53.
53.
54.
1
3
10
31
5
6
18
14
23
25
2
4
12
55.
Ans: 5
ListII
(i) Divide and Conquer
(ii) Dynamic Programming
(iii)Greedy design
(iv)Depth-first search
(v) Breadh-first search
Match the above algorithms on the left to
the corresponding design paradigm they
follow.
(A) 1-i, 2-iii, 3-i, 4-v (B) 1-iii, 2-ii, 3-i, 4-v
(C) 1-iii, 2-ii, 3-i, 4-iv (D) 1-iii, 2-ii, 3-i, 4-v
54.
Ans: (C)
55.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai