Gate 1993 CS Computer Science Question Paper
SECTION - A
1. In questions 1.1 to 1.7 below, one or more of the alternatives are correct. Write the code letter(s) a, b, c, d corresponding to the correct alternative(s) in the
answer book. Ma rks will be given only if all the correct alternatives have been selected and no incorrect alternative is picked up.
1.1 The eigen vector(s) of the matrix
0 0 a ˜ '
÷ ( ) 0 0 0 , 0 is are a ÷
÷ 0 0 0 «
( ) ( ) ( ) ( ) (a) 0,0, a (b) a , 0,0 (c) 0, 0,1 (d) 0, , 0 a
1.2 The differential equation d y dy y 2
+ + = sin 0 is:
dx dx
2
(a) linear (b) non-linear (c) homogeneous (d) of degree two
( )
1.3 Simpson's rule for integration gives exact result when f x is a polynomial of degree
(a) 1 (b) 2 (c) 3 (d) 4
1.4 Which of the following is (are) valid FORTRAN 77 statement(s)?
(a) DO 13 I = 1 (b) A = DIM ***7
(c) READ = 15.0 (d) GO TO 3 = 10
1.5 Fourier series of the periodic function (period 2 ) defined by p
À 0, is - < < p x ( ) f x x x p = Ã
, 0 < < Õ
p n nx n nx » ÿ 1 1 ƒ ( ) p p + - - cos 1 cos cos sin … Ÿ
p 4 n n / 2
But putting x = p , we get the sum of the series.
1 1 1
1 is + + + + >
3 5 7 2 2 2
p p p p 2 2 2 2
(a) (b) (c) (d)
4 6 8 12
1.6 Which of the following improper integrals is (are) convergent?
( ) 1.7 The function fx y x y xy y x , 3 2 has = - + + 2
(a) no local extremum
(b) one local minimum but no local maximum
(c) one local maximum but no local minimum
(d) one local minimum and one local maximum
2. In questions 2.1 to 2.10 below, each blank ( _____) is to be suitably filled in. In the answer book write the question number and the answer only. Do not copy the question. Also, no explanations for the answers are to be given.
( ) ( ) x e x - + - 1 2 cos 1
x
2.1 lim is _______
( ) x x 1 cos -
x 0
2.2 The radius of convergence of the power series
( ) 3 ! m x ƒ 8
is: ______________ 3 m
( )
m ! 3
gd
2.3 If the linear velocity is given by V
gd
ä V x yi xyz j yz k = + - , 2 2
gd
The angular velocity at the point (1, 1, -1) is ________
( ) ' = - 2.4 Given the differential equation, y x y with the initial condition y 0 0 = . The ( ) value of y calculated numerically upto the third place of decimal by the 0.1
second order Runga-Kutta method with step size h = 0.1 is ________
2.5 For X = 4.0, the value of I in the FORTRAN 77 statement
5.0 * 3 X
1 2 * *2 is _____ = - + +
X * 3 4
2.8 Given ä V x y i x e j z y k = + + cos sin 2 2 2 z
corner at the origin and edges parallel to the coordinate axes, the value of
integral
2.9 The differential equation 0 y y + = is subjected to the boundary conditions. n
( ) ( ) y 0 0 = y = 0
In order that the equation has non-trivial solution(s), the general value of ……..
2.10 The Laplace transform of the periodic function f t described by the curve below,
SECTION II œ A
INSTRUCTIONS: There are THREE questions in this Section. Question 6 has 8 parts, 7 has 10 pa rts, and 8 has 7 parts. Each part of a question carries 2 marks. There may be more than one correct alternative the multiple-choice questions. Credit will be given if only all the correct alternatives have been indicated.
6.1. Identify the logic function performed by the circuit shown in figure.
(a) exclusive OR (b) exclusive NOR (c) NAND
(d) NOR (e) None of the above
6.2. If the state machine described in figure, should have a stable state, the
restriction on the inputs is given by
(a) . 1 a b = (b) 1 a b + = (c) 0 a b + = (d) . 1 a b =
(e) 1 a b + =
6.3. For the initial state of 000, the function performed by the arrangement of the J-K flip-flops in figure is:
Clock
(a) Shift Register (b) Mod-3 Counter (c) Mod-6 Counter
(d) Mod-2 Counter (e) None of the above
6.4. Assume that each character code consists of 8 bits. The number of characters that can be transmitted per second through an asynchronous serial line at 2400 baud rate, and with two stop bits, is
(a) 109 (b) 216 (c) 218 (d) 219
(e) 240
6.5. Convert the following numbers in the given bases into their equivalents in the desired bases.
) )
(a) 110.101 x =
2 1 0
) )
(b) 1118 y H =
1 0
6.6. A ROM is used to store the Truth table for a binary multiple unit that will multiply two 4-bit numbers. The size of the ROM (number of words × number of bits) that is required to accommodate the Truth table is M words × N bits. Write the values of M and N.
6.7. A certain moving arm disk storage, with one head, has the following
specifications.
Number of tracks/recording surface = 200
Disk rotation speed = 2400 rpm
Track storage capacity = 62,500 bits
The average latency of this device is P msec and the data transfer rate is Q
bits/sec.
Write the value of P and Q.
6.8. The details of an interrupt cycle are shown in figure.
Given that an interrupt input arrives every 1 msec, what is the percentage of the total time that the CPU devotes for the main program execution.
7. Note: For sub-questions 7.1 to 7.3, refer to the PASCAL program shown below.
Program PARAM (input, output);
var m, n : integer;
procedure P (var, x, y : integer);
var m : integer;
begin
m : = 1;
x : = y + 1
end;
procedure Q (x:integer; vary : integer);
begin
x:=y+1;
end;
begin
m:=0; P(m,m); write (m);
n:=0; Q(n*1,n); write (n)
end
7.1. The value of m, output by the program PARAM is:
(a) 1, because m is a local variable in P
(b) 0, because m is the actual parameter tha t corresponds to the formal
parameter in p
(c) 0, because both x and y are just reference to m, and y has the value 0
(d) 1, because both x and y are just references to m which gets modified in
procedure P
(e) none of the above
7.2. The value of n, output by the program PARAM is:
(a) 0, because n is the actual parameter corresponding to x in procedure Q.
(b) 0, because n is the actual parameter to y in procedure Q.
(c) 1, because n is the actual parameter corresponding to x in procedure Q.
(d) 1, because n is the actual parameter corresponding to y in procedure Q.
(e) none of the above
7.3. What is the scope of m declared in the main program?
(a) PARAM, P, Q (b) PARAM, P (c) PARAM, Q
(d) P, Q (e) none of the above
7.4. What does the following code do?
var a, b : integer;
begin
a:=a+b;
b:=a-b;
a:=a-b
end;
(a) exchanges a and b (b) doubles a and stores in b
(c) doubles b and stores in a (d) leaves a and b unchanged
(e) none of the above
7.5. For the program segment given below, which of the following are true?
program main (output);
type link = ^data;
data = record
d : real;
n : link
end;
var ptr : link;
begin
new (ptr);
ptr:=nil;
.ptr^.d:=5.2;
write ln(ptr)
end.
(a) The program leads to compile time error
(b) The program leads to run time error
(c) The program outputs 5.2
(d) The program produces error relating to nil pointer dereferencing
(e) None of the above
7.6. A simple two-pass assembler does the following in the first pass:
(a) It allocates space for the literals.
(b) It computes the total length of the program
(c) It builds the symbol table for the symbols and their values.
(d) It generates code for all the load and store register instructions.
(e) None of the above.
7.7. A part of the system software, which under all circumstances must reside in the main memory, is:
(a) text editor (b) assembler (c) linker (d) loader
(e) none of the above
7.8. The root directory of a disk should be placed
(a) at a fixed address in main memory (b) at a fixed location on the disk
(c) anywhere on the disk
(d) at a fixed location on the system disk (e) anywhere on the system disk
7.9. Consider a system having m resources of the same type. These resources are shared by 3 processes A, B and C, which have peak demands of 3, 4 and 6 respectively. For what value of m deadlock will not occur?
(a) 7 (b) 9 (c) 10 (d) 13
(e) 15
7.10. Assume that the following jobs are t o be executed on a single processor system
Job Id CPU Burst time
p 4
q 1
r 8
s 1
t 2
The jobs are a ssumed to have a rrived at time 0 and in the order p, q, r, s, t. + calculate the departure time (completion time) for job p if scheduling is round robin with time slice 1.
(a) 4 (b) 10 (c) 11 (d) 12
(e) None of the above
8.
8.1. Consider a simple connected graph G with n vertices and n-edges (n>2). Then,
which of the following statements are true?
(a) G has no cycles.
(b) The graph obtained by removing any edge from G is not connected.
(c) G has at least one cycle.
(d) The graph obtained by removing any two edges from G is not connected.
(e) None of the above.
( )
8.2. The proposition P p q ~ is:
(a) a tautology (b) logically equivalent to p q
(c) logically equivalent to p q (d) a contradiction
(e) none of the above
8.3. Let S be an infinite set and S S > be sets such that , S S S S = > Then, .
1 n 1 2 n
(a) at least one of the set S is a finite set
i
(b) not more than one of the set S can be finite
i
(c) at least one of the sets S is an infinite set
i
(d) not more than oen of the sets S can be infinite
i
(e) None of the above
8.4. Let A be a finite set of size n. The number of elements in the power set of
(e) None of the above
8.5. The less-than relation,