Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Engineering Academy
Hyderabad | Delhi | Bhopal |Pune | Bhubaneswar | Bengaluru | Lucknow | Patna | Chennai | Vijayawada | Visakhapatnam | Tirupati
H.O: 204, II Floor, Rahman Plaza, Opp. Methodist School, Abids, Hyderabad-500001.
Ph: 040-23234418, 040 -23234419 , 040-23234420, 040-24750437
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
:2: CSIT
A to B, B to C and C to D x y z
07. If 5 and a, b
AC = (AB – BC) = (10 – 6) km = 4 km 3a 2b 3b 2c 3c 2a
Clearly, D is to the North-East of A and c are in continued proportion and b, c,
Kishenkant’s distance from starting point a are in continued proportion, then
A x y z
is _______ ( a, b and c are
AD = AC2 CD 2 a 2b 3c
in continued proportion means b2 = ac)
(4) 2 (3) 2 25 = 5 km
1 1 5
So, Kishenkant is 5 km to the North-East (A) 55 (B) 25 (C) 4 (D) 45
5 6 6
of his starting point
Ans: (D)
Sol: Given that a, b, c are in continued
proportion b2 = ac -------- (1)
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
:3: Pre GATE Question Paper
d1
One Mark Questions (Q11–35) a b
S d2
d
expression 8 2 4 * / 2 3 * + 5 1 * –
is __________. R X
Ans: 2 C
Sol:
e f g
4 3
2 8 2 Total number of attributes in each of the relation
8 8 1 1 schemes in relational model is ______
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
:5: Pre GATE Question Paper
______.
Ans : 219
Sol:
Ans: 98 First arrange all files in the increasing
Sol: order of length and then in each iteration,
Maximum number of articulation points
select two files which are having least
are possible if the binary tree is left skewed number of records and merge them into
(or) right skewed. single file.
In left skewed (or) right skewed binary tree Continue this process until all files are
completed.
with ‘n’ nodes contains maximum (n–2)
I9
articulation points.
75
I8
Since we have 100 nodes, so we have 98
41
articulation points. I6
21
I4 I7
What is the return value of f(49698589) is 21. Assume intermediate router received a
________. IPV6 datagram. If the datagram is too large
Ans: 0 to be forwarded over the outgoing link, the
Sol: router is _______.
A number is divisible by 9 iff the sum of (A) Drops
(B) Fragments
the digits of the number is divisible by 9.
(C) Forward without fragmenting
f(49698589) 4 + 9 +6 + 9 + 8 + 5 + 8 +9 (D) None
= 58
f(58) 5 + 8 = 13 Ans: (A)
f(13) 1 + 3 = 4 Sol: Drops and sends “Packet Too Big” ICMP
f(4) return ‘0’ error message
19. Minimum number of 6 × 64 Decoder 22. Consider the following enumerations &
needed to implement 8× 256 Decoder with choose the false answer:
enable inputs (without using extra
1: Effective enumeration of all cfls that is
Hardware) is ______.
countably infinite.
6 I/P’s 6 × 64
Ans: 5 64
2: A countably infinite effective
E
Sol: N
Mas enumeration of all pairs of real
ter 6 I/P’s 6 × 64 64
0
2 I/P’s E 256
numbers.
1 N O/P’s
4 I/P’s
6 × 64 2 6 I/P’s 6 × 64 64 3: A countably infinite effective
E
3 N enumeration of all TMs
EN 63 .. . 6 I/P’s 6 × 64 64
E 4: An effective enumeration of all
. N
1 Slaves
1 master + 4 slaves recursive sets that is countably infinite
Total 5 decoders are minimum needed. (A) 1 × 2 does not exist
(B) 2 × 3 does not exist
20. In which of the modes of operation the (C) 3 × 4 does not exist
transmission error does not affect the (D) 1 × 3 does not exist
future bits. Ans: (D)
(A) Cipher block chaining Sol: Since the descriptions of TMs are finite &
(B) Cipher feedback all cfls are finite we can enumerate
(C) Output feedback effectively all the descriptions in
(D) B and C increasing order of size. So 1 × 3 is
countably infinite by dovetailing.
Ans: (C)
Sol: Output is not linked to input of next block
but sub key is linked to next block.
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
:7: Pre GATE Question Paper
23. What is the Time Complexity of the (A) Every key of R contains A
following piece of code? (B) No key of R contains A
(C) Some key of R contains A while some
void A( ) other key does not
{ (D) None of the above
int n 22 ;
K
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
:8: CSIT
S2: when p has truth value false, q has How much time can be saved using design
truth value false and r has truth value D2 over D1, for executing ‘100’
true, we have S2 is false. instructions?
(A) 99 ns (B) 2091 ns
S2 is not valid (C) ‘0’ ns (D) 309 ns
S3 : when p is false and q is true; we have,
S3 is false. Ans: (D)
S3 is not valid Sol: D1 D2
K=6 K = 8 ns
S4: (~(p q) p) ~q tp = 6 ns, n = 100 tp = 3 ns;
((p ~q) p) ~q (K+n –1)× tp= 105 × 6 n = 100
((~q p) p) ~q = 630 ns tp = 107 × 3
By commutativity = 321
Time
(~q (p p)) ~q By associativity
saved = 630 – 321 = 309
(~q p) ~q
By idempotent law 29. The Concatenation of two linked lists is to
T (Simplification) be performed on O(1) time. Which of the
following implementation should be used?
(A) Circular Linked List
27. The below diagram acts as 2 bit ________
(B) Singly Linked List
when mode switch is connected to ‘1’.
(C) Doubly Linked List
Mode switch (D) Circular doubly linked list
Ans: (D)
1 T Q 1 T Q Sol: The starting node holds the address of the
Clk
last node
Q
Q 30. An organization has a Class C network and
want to form subnets for four departments
with hosts as follows.
(A) 2 bit up counter
A–35, B – 20, C– 54, D–40
(B) 2 bit Down counter
What is the possible arrangements of
(C) Mod 3 up counter
subnet masks?
(D) Mod 3 Down counter
(A) 255.255.255.192 (B) 255.255.255.224
(C) 255.255.255.128 (D) 255.255.255.240
Ans: (B)
Sol: When mode switch is ‘1’, only upper AND
Ans: (A)
gate gives ‘1’ output so, it acts as positive
Sol: class C has 24 bits – NID
trigger, so it is 2 bit down counter with
sequence of 00, 11, 10, 01,00, 11..... 8 bits – HID
31. Consider a system with n – CPU’s (n > 1) 33. If the determinant of n × n matrix is zero,
and ‘z’ processes. (z < n). The maximum then
number of processes that can be in the (A) rank(A) n – 2
running & block states are respectively. (B) trace of A is zero
(C) zero is an eigen value of A
(A) n & z – n (D) X = 0 is the only Solution of AX = 0
(B) z & z
(C) n & z Ans: (C)
(D) n & n - z
Sol: If det(An×n) = 0 then zero is an eigen value
of A. Since det(A) = product of eigen
Ans: (B)
values.
Sol: Since the number of processes are less than
the number of CPU’s hence all can be
running state. In a situation sometimes all 34. Let B = {2, 3, 6, 9, 12, 18, 24} and let
can be blocked. A = B × B. Define the following relation
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 10 : CSIT
35. Messages are transmitted over a instead of two children, nodes have
communication channel using two signals. k-children. A k-array heap can be
The transmission of one signal requires 1 represented in a one-dimensional array as
microsecond and the transmission of the follows. The root is kept in A[1], its ‘k’
other signal requires two microseconds.
children are kept inorder in A[2] through
The recurrence relation for the number of
A[k+1], their children are kept inorder in
different messages consisting of sequences
of these two signals (where each signal is A[k+2] through A[k2+k+1] and so on.
immediate followed by the next signal) In 4-array heap, to what index does the 2nd
that can be send in n microseconds (n2) is child of 3rd index node map _______.
_____.
(A) an = an–1 + an–2 Ans: 11
(B) an = an–1 + 2an–2 Sol:
1
(C) an = 2an–1 + an–2
(D) an = an–1 + an–3
2
Ans: (A) 3
4 5
Sol:
Let an = number of different messages that
6 7 8 9 10 11
can be sent in n microseconds. 12 13 14 15 16 17 18 19 20 21
Case(i): If the first signal required one From the above 4-array tree, we can see
microsecond, then the remaining part of index of 2nd child of 3rd index node is 11.
the message can be sent in an–1 ways.
37. Consider the following two transactions
Case(ii): If the first signal require 2
microseconds, then the remaining part of T1: R(A) W(A) R(B) W(B)
the message can be sent in an–2 ways. T2: R(A) W(A) R(B) W(B)
These two cases are mutually exclusive How many interleavings of these
and exhaustive. transactions are conflict serializable?
By sum rule, the recurrence relation is
Ans: 12
an = an–1 + an–2.
Sol: For serial schedule T1 T2
R1(A) W1(A) R1(B) W1(B) R2(A) W2(A)
R2(B) W2(B)
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 11 : Pre GATE Question Paper
Ans: 2000
40. 2
| 1 x 4 | dx __________.
41. An 8 way set Associative cache memory How big would the window size (in
unit with a capacity of 32 kB is built using packets) have to be for the channel
a block size of 8 words. The word length is
16 bits. The size of the physical Address utilization to be greater than 80% is
space is 16 GB. The number of bits in tag _______.
field is _________.
Ans: 1706 – 1707
Ans: 22 Sol: Bandwidth-delay product
Sol: Associativity = 8 = 512 106 40 10–3 = 2048 104 bits.
Size of cache memory = 215 B 80% utilization,
Size of a Block = 8 × 2 B = 16 Bytes
= 24 Bytes it is 2048 104 0.8 = 16384 103.
Number of blocks in cache memory = 211
16384 10 3
Size of main memory = 234 B Number of packets 1707
Number of blocks in main memory = 230 1200 8
Number of sets in cache memory = 211/8
= 28
230 44. Certain CPU uses expanding Opcode. It
28 2 22 has 32 bit instructions with 8 bit
Number of Tag bits = log 2 = log 2 = 22
Addresses. It supports One Address and
42. If a simple graph G has 2 connected Two Address instructions only. If there are
components with 6 vertices and 8 vertices ‘n’ Two Address instructions; The
respectively, then maximum number of maximum number of one Address
edges possible in G is _______. instruction is:
(A) (28 – n) × 28 (B) (216 – n) × 216
16 8
Ans: 43 (C) (2 – n) × 2 (D) (224 – n) × 28
Sol: Maximum number of edges possible in a
connected component with 6 vertices Ans: (C)
= C(6, 2) = 15. Sol: Max number of 2 Address instructions is
Maximum number of edges possible in a 216.
connected component with 8 vertices
= C(8, 2) = 28 Opcode A1 A2
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 13 : Pre GATE Question Paper
45. # include<stdio.h> 47. A fair coin is tossed until one of the two
int main( ) sides occurs twice in a row. The
{ probability that the number of tosses
char arr[15]; required is even is ________.
arr = “ACEHYDERABAD”; 2 1
printf(“%d”, arr); (A) (B)
3 3
return 0; 1
} (C) (D) None
2
What will be output of above program?
Ans: (A)
(A) ACEHYDERABAD
Sol: A = {HH, HTHH, HTHTHH, ..........}
(B) A
B = {TT, THTT, THTHTT, ............}
(C) NULL
1 1
(D) Compilation ERROR. P(A) = & P(B) =
3 3
2
Ans: (D) P(A or B) =
Sol: Compilation Error: L value Required 3
Array name is constant pointer and we can
not assign any value in constant datatype 48. The intermediate form of a + b * c is given
after declaration. below in triples, quadruples, postfix, trees
& DAGs choose the correct answer.
46. It is at present not known if a polynomial
(A) + (B) ab +c *
time complexity algorithm exists for
integer factorization. Let p represent this a *
statement being true if no algorithm exists.
b c
Consider the language
a b * if p is true
(C) 1. (*, b, c) (D) 1. (+, b, c, T1)
L ww R | w a b if p is false
*
2. (+, a, (1)) 2.(*, a, T1, T2)
w w R | w a b * if p is undecidable
(A) is a DAG & not a tree
Choose the correct answer:
(B) is an erroneous representation as * has
(A) L is recursive but not a cfl
a higher precedence than +
(B) L is r.e. but not recursive
(C) The triple representation (C) is useful
(C) L is undecidable
so for optimization of expressions
(D) L is always a cfl
(D) This quadruple representation is not
optimized
Ans: (D)
Sol: Regardless of p, L is always a cfl.
Ans: (C)
Sol: The triples representation makes it easy to
detect common sub expression.
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 14 : CSIT
49. Consider two formal languages 51. The area bounded by the curve
y = x4 – 2x3 + x2 + 3, the x-axis and two
L & L1 = L {}. It is given that L is - ordinates corresponding to the points of
free. Let L2=L1 L2. Which of the minimum of this function is;
1 91
following statements is true? (A) (B)
30 30
(A) If L is regular then L2 is always 758 728
recursive (C) (D)
480 480
(B) If L is a cfl then L2 is always recursive
(C) L1, L2 can never be recursive but L Ans: (B)
may be recursive Sol: y = 0 4x3 – 6 x2 + 2x = 0
(D) L, L1 & L2 can possibly be all r.e. & 1
recursive x = 0, , 1 are stationary points
2
2
Ans: (C) y = 12x – 12x + 2
Sol: A recursive set cannot contain . y(x) has min at x = 0 & x = 1
Required Area
50. Consider the following concurrent
processes ‘i’, ‘k’ and ‘l’.
1
= x 4 2x 3 x 2 3 dx
0
91
30
S,T and Z are Binary Semaphores
initialized as follows : 52. The Chained matrix product problem is
B Sem S = 1, T = 0, Z = 0
defined as follows:
Process i : Process k: Process l : Given ‘n’ matrices M1, M2, ....... Mn, the
{ { {
while (1) P (T); P (Z); dimensions of the matrices are given by a
{ V(Z); V(S); vector d[0....n] such that the matrix Mi,
P(S); } }
print (‘*’); 1 i n is of dimension di–1×di. We build
V(T);
} the table mij diagonal by diagonal:
}
The Maximum & Minimum number of diagonal ‘s’ contains the elements m ij such
times ‘*’ gets printed is ____ & ______; that j–i = s. Where mij represents the
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 15 : Pre GATE Question Paper
1
i k < i + s. We need mik scalar 5
= 0.6999
multiplications to calculate left hand term
mk+1, i+s to calculate the right hand term and 55. Let S be a non empty set and P(S) is power
set of S.
then di–1×dk ×di+s to multiply the two
A binary operation * on P(S) is defined by
resulting matrices to obtain final result. A*B=AB
min mik m k 1,i s d i 1 d k d i s
= Symmetric difference of A and B
i k i s Now, P(S) with respect to * is ______.
(A) a semi group but not a monoid
53. Let A be a 3 × 3 matrix with real entries
(B) a monoid but not a group
(C) a group
such that det(A) = 6 and tr(A) = 0. (D) not a semi group
If det(A+I) = 0, where I denotes the 3 × 3
matrix. The eigen values of A are______. Ans: (C)
(A) –1, 2, 3 (B) –1, 2, –3 Sol: A B = (A–B) (B–A)
(C) 1, 2, –3 (D) –1, –2, 3 we have A B P(S) A, B P(S)
* is a closed operation
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 16 : CSIT
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 17 : Pre GATE Question Paper
Ans: (C)
Product
Sol:
Pid Pname
S 98 Detol
A f G
99 Lux
B e F 100 Colgate
C E H
D
T*
Which of the following queries not returns
the customer names, who purchase all
products?
I. TRUE
Suppose ‘f’ belongs to T* (A) Select Cname
Deleting ‘f’ from T* disconnects T* and From customer
let ‘s’ be one side of cut. Where Cid = all (select Cid from
Some other edge in cycle ‘C’ say ‘e’ has purchase
exactly one end point in S Where Pid = all (select Pid from
T = T* {e} – {f} is also a spanning product));
Tree. (B) Select Cname
Since Ce < Cf so cost(T) < cost(T*) From customer
Which is contradictory to minimality of Where not exists (select Pid from
T* product)
minus
II. TRUE (select Pid from product
Suppose ‘e’ does not belong to T* where customer.Cid = Purchase.Pid)
Adding ‘e’ to T* creates a(unique) cycle (C) Select Cname
‘C’ in T* From customer
Some other edge in cycle ‘C’, say ‘f’ has Where (select Pid from purchase where
exactly one end point in ‘s’ customer.Cid = purchase.Cid) contains
T = T* {e}–f is also spanning Tree and (select Pid from product)
since Ce < Cf (D) None
So,cost(T) < cost(T*)
Which is contridicts minimality of T*. Ans: (A)
Sol: Each inner query in option (A) returns
59. Consider following table of data more than one value and = all (many
values) returns false. The query results in
Customers
Purchase error.
Cid Cname
Cid Pid
1 Kumar
1 98 60. Which of the following statements is/are
2 Rahul true?
2 99
3 Sita S1) In a lattice L, if each element has
1 100
3 100 atmost one complement, then L is a
1 99 distributive lattice
3 98 S2) A sub lattice of a complemented lattice
is also complemented.
Which of the following is true?
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 18 : CSIT
(A) S1 is true and S2 is false Sol: If f(x) is probability density function, then
f x dx 1
(B) S1 is false and S2 is true
(C) Both S1 and S2 are true
(D) Both S1 and S2 are false
f x dx = 2 x e x dx 1
2
0
(B) f x (C) 15 13 12 14 11 16 17 18
0 , else where (D) 15 13 11 12 14 17 16 18
x 1 x , 0 x 1
(C) f x Ans: (D)
0 , else where
Sol: In the given list of outputs 15 is appearing
2 x e x , x 0
2
Ans: (D)
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati
: 19 : Pre GATE Question Paper
64. Consider a system with n–processes and a 65. Consider the following sets over a finite
single resource ‘R’ each process Pi is
alphabet
assigned ‘xi’ copies of ‘R’ and further
requests ‘yi’ copies of ‘R’ at time t, there S1: Descriptions of all LR(0) grammars
are two processes a & b whose requests is
S2: Descriptions of all LR(1) grammars
zero. Further, ‘K’ copies of ‘R’ are free
available at time ‘t’. System is said to be S3: Descriptions of all SLR(1) grammars
not approaching deadlock if the minimum
S4: Description of all LL(1) grammars
need of process request is satisfiable.
Which condition indicates that system is S5: Description of all operator grammars
not approaching deadlock?
S6: Description of all LALR(1) grammars
(A) x a y b
max
j a, b
y j
Choose the correct answers:
ACE Engineering Academy Hyderabad |Delhi |Bhopal |Pune |Bhubaneswar |Bengaluru |Lucknow |Patna |Chennai | Vijayawada |Visakhapatnam | Tirupati