Professional Documents
Culture Documents
GATE 2015
Computer Science & Information Technology (CSIT)
DATE: 08/02/2015
01.
01.
02.
02.
05.
06.
(0, -1)
03.
03.
04.
04.
06.
07.
(A) x = y|y|
(C) x = y+ |y|
Ans: (B)
(B) x = (y|y|)
(D) x = (y+|y|)
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:3:
07.
08.
120
110
100
90
80
70
60
50
40
30
20
10
0
10.
2000
2001
2002
2003
2004
Exports
Imports
2005
2006
2007
08.
Ans: 2006
09.
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.
02.
ex
06.
07.
03.
03.
04.
04.
05.
05.
07.
08.
08.
09.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:6:
09.
10.
10.
i3 X
and the
i0
11.
11.
12.
13.
1 1 2
In the given matrix 0 1 0 , one of the
1 2 1
eigen values is 1. The eigen vectors
corresponding to the eigen value 1 are
(A) {(4, 2, 1) | 0, R}
(B) {(4, 2, 1) | 0, R}
(C) {( 2 , 0, 1) | 0, R}
13.
(D) {( 2 , 0, 1) | 0, R}
Ans: (B)
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:7:
14.
14.
15.
15.
16.
16.
17.
18.
18.
19.
19.
20.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:8:
varP = false;
}
}
/* other code for process X */
20.
21.
Process Y
/* other code for process Y */
while (true)
{
varQ = true;
while (varP == true)
{
/* critical section */
varQ = false;
}
}
/* other code for process Y */
Here, varP and varQ are shared variables
and both are initialized to false. Which one
of the following statements is true?
(a) The
proposed
solution
prevents
deadlock but fails to guarantee mutual
exclusion
(b) The proposed solution guarantees
mutual exclusion but fails to prevent
deadlock
(c) The proposed solution guarantees
mutual exclusion and prevents deadlock
(d) The proposed solution fails to prevent
deadlock and fails to guarantee mutual
exclusion
Ans: (D)
Consider a CSMA/CD network that
transmits data at a rate of 100 Mbps (108
bits per second) over a 1 km (kilometer)
cable with no repeaters. If the minimum
frame size required for this network is 1250
21.
22.
22.
23.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
:9:
23.
24.
24.
25.
25.
26.
26.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 10 :
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 11 :
27.
27.
28.
28.
29.
29.
Time
Transaction -id
instance
T1
T2
1
read(A)
2
write(A)
3
recd(C)
4
write (C)
5
read(B)
6
write(B)
7
read(A)
8
commit
9
read(B)
Schedule S
Suppose that the transaction T1 fails
immediately after time instance 9. Which
one of the following statements is correct?
(a) T2 must be aborted and then both T1
and T2 must be re started to ensure
transaction atomicity
(b) Schedule S is non recoverable and
cannot ensure transaction atomicity
(c) Only T2 must be aborted and then
re started to ensure transaction
atomicity
(d) Schedule S is recoverable and can
ensure atomicity and nothing else needs
to be done
Ans: (B)
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 12 :
31.
31.
32.
32.
33.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 13 :
33.
34.
34.
Arrival Processing
Time
Time
0
3
1
6
4
4
6
2
Ans: (C)
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 14 :
36.
36.
37.
38.
38.
Ans: 50
37.
39.
40.
40.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 15 :
41.
43.
44.
int **ptr = p;
ptr++;
printf(%d%d, ptr-p, **ptr);
}
41.
42.
42.
43.
44.
45.
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 16 :
S2: Elements of array X accessed inside
for loop shown in code segment 1
contiguous in main memory
S3: Elements of array X accessed inside
for loop shown in code segment 2
contiguous in main memory
45.
46.
the
are
the
are
48.
recursive
where a b then f x dx is
49.
(A)
47 b
a
ln
2
25
2
a 2 b2
(B)
47 b
a 2 ln 2 25 2
a b
(C)
47 b
a 2 ln 2 25 2
a b
46.
47.
47.
S1
S2
S3
47 b
a ln 2 25 2
a b
Ans: (A)
Let G be a connected undirected graph of
100 vertices and 300 edges. The weight of a
minimum spanning tree of G is 500. When
the weight of each edge of G is increased by
five, the weight of a minimum spanning tree
becomes______.
Ans: 995
(D)
49.
50.
50.
Time
1 2 3 4 5
X
X
X
X
X
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai
: 17 :
51.
(S1) F = (4, 5, 6)
(S2) F = (0, 1, 2, 3, 7)
(S3) F = (4, 5, 6)
(S4) F = (0, 1, 2, 3, 7)
Which of the following is true?
51.
52.
52.
53.
53.
54.
54.
55.
55.
2
10
4
18
6
25
8
29
10
32
12
20
14
11
16
5
18
2
20
0
Hyderabad | New Delhi | Bhopal| Bengaluru | Bhubaneswar | Vijayawada | Visakhapatnam | Tirupati | Pune | Chennai