SlideShare a Scribd company logo
1 of 16
Download to read offline
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
SECTION - A
1. This question has 25 parts. Each part carries 1 mark. Choose the correct
alternative for each part.
1.1 A single instruction to clear the lower four bits of the accumulator in 8085 assebly
language?
(a) XRI OFH (b) ANI FOH (c) XRI FOH (d) ANI OFH
1.2 Which of the following statements is true?
(a) ROM is a Read/Write memory
(b) PC points to the last instruction that was executed
(c) Stack works on the principle of LIFO
(d) All instructions affect the flags
1.3 In a vectored interrupt
(a) the branch address is assigned to a fixed location in memory
(b) the interrupt source supplies the branch information to the processor through
an interrupt vector
(c) the branch address is obtained from a register in the processor
(d) none of the above
1.4 In the following Pascal program segment, what is the value of X after the
execution of the program segment?
X:=-10; Y:=20;
If X > Y then if X < 0 then X:=abs(X) else X:=2*X;
(a) 10 (b) -20 (c) -10 (d) None
1.5 Merge sort uses
(a) Divide and conquer strategy (b) Backtracking approach
(c) Heuristic search (d) Greedy approach
1.6 The principle of locality justifies the use of
(a) interrupts (b) DMA
(c) Polling (d) Cache Memory
1.7 In a paged segmented scheme of memory management, the segment table itself
must have a page table because
(a) the segment table is often too large to fit in one page
(b) each segment is spread over a number of pages
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
(c) segment tables point to page table and not to the physical locations of the
segment
(d) the processor’s description base register points to a page table
1.8 Which of the following page replacement algorithms suffers from Belady’s
anamoly?
(a) Optimal replacement (b) LRU
(c) FIFO (d) Both (a) and (c)
1.9 In some programming languages, an identifier is permitted to be a letter
following by any number of letters or digits. If L and D denote the sets of letters
and digits respectively, which of the following expressions defines an identifier?
(a) ( )L D
+
∪ (b) ( )
*
L L D∪ (c) ( )
*
.L D (d) ( )
*
. .L L D
1.10 Consider a grammar with the following productions
S a b b c aB
S S b
S b b ab
S bd b b
→ ∝ ∝
→∝
→∝
∝→
The above grammar is:
(a) Context free (b) Regular
(c) Context sensitive (d) LR(k)
1.11 What are x and y in the following macro definition?
macro Add x,y
Load y
Mul x
Store y
end macro
(a) Variables (b) Identifiers
(c) Actual parameters (d) Formal parameters
1.12 What is the distance of the following code 000000, 010101, 000111, 011001,
111111?
(a) 2 (b) 3 (c) 4 (d) 1
1.13 Which of the following strings can definitely be said to be tokens without looking
at the next input character while compiling a Pascal program?
I. begin II. program III. <>
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
(a) I (b) II (c) III
(d) All of the above
1.14 A linker is given object modules for a set of programs that were compiled
separately. What information need to be included in an object module?
(a) Object code
(b) Relocation bits
(c) Names and locations of all external symbols defined in the object module
(d) Absolute addresses of internal symbols
1.15 Which scheduling policy is most suitable for a time shared operating system?
(a) Shortest Job First (b) Round Robin
(c) First Come First Serve (d) Elevator
1.16 For merging two sorted lists of sizes m and n into a sorted list of size m+n, we
required comparisons of
(a) ( )O m (b) ( )O n
(c) ( )O m n+ (d) ( )log logO m n+
1.17 A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is:
(a) 2log n (b) 1n − (c) n (d) 2n
1.18 The probability that a number selected at random between 100 and 999 (both
inclusive) will not contain the digit 7 is:
(a)
16
25
(b)
3
9
10
 
 
 
(c)
27
75
(d)
18
25
1.19. Let R be a symmetric and transitive relation on a set A. Then
(a) R is reflexive and hence an equivalence relation
(b) R is reflexive and hence a partial order
(c) R is reflexive and hence not an equivalence relation
(d) None of the above
1.20. The number of elements in he power set ( )P S of the set ( ) ( ){ },1, 2,3S φ= is:
(a) 2 (b) 4 (c) 8
(d) None of the above
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
1.21. In the interval 0,π   the equation cosx x= has
(a) No solution (b) Exactly one solution
(c) Exactly two solutions (d) An infinite number of solutions
1.22. If at every point of a certain curve, the slope of the tangent equals
2x
y
−
the
curve is
(a) a straight line (b) a parabola
(c) a circle (d) an ellipse
1.23. The value of k for which 2 2
4 8 0x xy ky− + = does not represent a pair of straight
lines (both passing through the origin) is:
(a) 0 (b) 2 (c) 9 (d) 3
1.24. The rank of the following ( ) ( )1 1n n+ × + matrix, where a is a real number is
2
2
2
1
1
1
n
n
n
a a a
a a a
a a a
 
 
 
 
 
 
 
 
L
L
M M M M
M M M M
L
(a) 1 (b) 2 (c) n
(d) Depends on the value of a
1.25 The minimum number of edges in a connected cyclic graph on n vertices is:
(a) n - 1 (b) n (c) n + 1
(d) None of the above
2. This question has 25 parts. Each part carries 2 Marks. Choose the correct
alternative for each part.
2.1 A sequence of two instructions that multiplies the contents of the DE register pair
by 2 and stores the result in the HL register pair (in 8085 assembly language) is:
(a) XCHG and DAD B (b) XTHL and DAD H
(c) PCHL and DAD D (d) XCHG and DAD H
2.2. The capacity of a memory unit is defined by the number of words multiplied by
the number of bits/word. How many separate address and data lines are needed
for a memory of 4 K × 16?
(a) 10 address, 16 data lines (b) 11 address, 8 data lines
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
(c) 12 address, 16 data lines (d) 12 address, 12 data lines
2.3. Assume that X and Y are non-zero positive integers. What does the following
Pascal program segment do?
while X <>Y do
if X > Y then
X:=X – Y
else
Y:=Y – X;
write(X);
(a) Computes the LCM of two numbers
(b) Divides the larger number by the smaller number
(c) Computes the GCD of two numbers
(d) None of the above
2.4. What is the value of X printed by the following program?
program COMPUTE (input, output);
var
X:integer;
procedure FIND (X:real);
begin
X:=sqrt(X);
end;
begin
X:=2
Find(X)
Writeln(X)
end
(a) 2 (b) 2
(c) Run time error (d) None of the above
2.5. What values of A, B, C and D satisfy the following simultaneous Boolean
equations?
0, ,A AB AB AC AB AC CD CD+ = = + + =
(a) A = 1, B = 0, C = 0, D = 1 (b) A = 1, B = 1, C = 0, D = 0
(c) A = 1, B = 0, C = 1, D = 1 (d) A = 1, B = 0, C = 0, D = 0
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
2.6. The sequence …………… is an optimal non-preemptive scheduling sequence for the
following jobs which leaves the CPU idle for ……………………. unit(s) of time.
(a) {3,2,1),1 (b) (2,1,3},0 (c) {3,2,1),0 (d) {1,2,3},5
2.7. The address sequence generated by tracing a particular program executing in a
pure demand paging system with 100 records per page with 1 free main memory
frame is recorded as follows. What is the number of page faults?
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320,
0370
(a) 13 (b) 8 (c) 7 (d) 10
2.8. If the cube roots of unity are 1, ω and ω2
, then the roots of the following equation
are ( )
3
1 8 0x − + =
(a) -1, 1 + 2ω, 1 + 2ω2
(b) 1, 1 - 2ω, 1 - 2ω2
(c) -1, 1 - 2ω, 1 - 2ω2
(d) -1, 1 + 2ω, -1 + 2ω2
2.9. A language with string manipulation facilities uses the following operations
head(s): first character of a string
tail(s): all but the first character of astring
concat(s1,s2):s1 s2
for the string acbc what will be the output of
concat(head(s), head(tail(tail(s))))
(a) ac (b) bc (c) ab (d) cc
2.10. A shift reduce parser carries out the actions specified within braces immediately
after reducing with the corresponding rule of grammar
{ }
{ }
{ }
print"1"
print"2"
print"3"
S xxW
S y
W Sz
→
→
→
What is the translation of xxxxyzz using the syntax directed translation scheme
described by the above rules?
(a) 23131 (b) 11233 (c) 11231 (d) 33211
Job Arrival time Burst time
1 0.0 9
2 0.6 5
3 1.0 1
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
2.11. A variant record in Pascal is defined by
type varirec = record
number : integer;
case (var1,var2) of
var1: (x,y : integer);
var2: (p.q.: real)
end
end
Suppose an array of 100 records was declared on a machine which uses 4 bytes
for an integer and 8 bytes for a real. How much space would the compiler have to
reserve for the array?
(a) 2800 (b) 2400 (c) 2000 (d) 1200
2.12. The number of 1’s in the binary representation of
( )3 * 4096 15 * 256 5 *16 3+ + + are:
(a) 8 (b) 9 (c) 10 (d) 12
2.13. A unit vector perpendicular to both the vectors
2 2 and 1 2a i j k b j k= − + = + − is:
(a) ( )
1
3
i j k+ + (b) ( )
1
3
i j k+ − (c) ( )
1
3
i j k− − (d) ( )
1
3
i j k+ −
2.14. A bag contains 10 white balls and 15 black balls. Two balls are drawn in
succession. The probability that one of them is black and the other is white is:
(a)
2
3
(b)
4
5
(c)
1
2
(d)
2
1
2.15. The iteration formula to find the square root of a positive real number b using the
Newton Raphson method is
(a) ( )1 3 2k k kx x b x+ = + (b) ( )1 3 2k k b kx x x+ +=
(c) ( )2
1 2k k k kx x x x b+ = − + (d) None of the above
2.16. In a virtual memory system the address space specified by the address lines of
the CUP must be __________ than the physical memory size and _______ than
the secondary storage size.
(a) smaller, smaller (b) smaller, larger
(c) larger, smaller (d) larger, larger
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
2.17. Let A be the set of all non-singular matrices over real number and let* be the
matrix multiplication operation. Then
(a) A is closed under* but < A, *> is not a semigroup
(b) <A, *> is a semigroup but not a monoid
(c) <A, *> is a monoid but not a group
(d) <A, *> is a group but not an abelian group
2.18. The solution of differential equation 3 2 0y y y′′ ′+ + = is of the form
(a) 2
1 2
x x
C e C e+ (b) 3
1 2
x x
C e C e−
+ (c) 2
1 2
x x
C e C e− −
+ (d) 2
1 22x x
C e C− −
+
2.19. If the proposition p ν¬ ⇒ is true, then the truth value of the proposition
( ),pV p q¬ ⇒ where ¬ is negation, ‘V’ is inclusive or and ⇒ is implication, is
(a) true (b) multiple valued
(c) false (d) cannot be determined
2.20. Which of the following definitions below generates the same language as L,
where { }such that 1 ?n n
L x y n= >=
I. E xE y xy→
II. ( )x y x xyy+ +
III. x y+ +
(a) I only (b) I and II (c) II and III (d) II only
2.21. The postfix expression for the infix expression
( )* / *A B C D F D E+ + + is:
(a) AB + CD + *F/D + E* (b) ABCD + *F/DE*++
(c) A *B + CD/F *DE++ (d) A + *BCD/F* DE++
2.22. Which of the following statements is true?
I. As the number of entries in a hash table increases, the number of collisions
increases.
II. Recursive programs are efficient
III. The worst case complexity for Quicksort is ( )2
O n
IV. Binary search using a linear linked list is efficient.
(a) I and II (b) II and III (c) I and IV (d) I and III
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
2.23. A finite state machine with the following state table has a single input x and a
single out z.
present state next state, z
x=1 x=0
A D, 0 B, 0
B B, 1 C, 1
C B, 0 D, 1
D B, 1 C, 0
If the initial state is unknown, then the shortest input sequence to reach the final
state C is:
(a) 01 (b) 10 (c) 101 (d) 110
2.24. Let { } { }*
0,1 , and 0 1 such that 0n n
L R n∑ = = ∑ = > then the languages L R∪ and
R are respectively
(a) regular, regular (b) not regular, regular
(c) regular, not regular (d) not regular, no regular
2.25. A computer system has a 4K word cache organized in block-set-associative
manner with 4 blocks per set, 64 words per block. The number of bits in the SET
and WORD fields of the main memory address format is:
(a) 15, 40 (b) 6, 4 (c) 7, 2 (d) 4, 6
3. Consider the following high level program segment. Give the contents of the
memory locations for variables W, X, Y and Z after the execution of the program
segment. The values of the variables A and B are 5 CH and 92H, respectively.
Also indicate error conditions if any.
var
A, B, W, X, Y :unsigned byte;
Z :unsigned integer, (each integer is represented by two
bytes)
begin
X :=A+B
Y :=abs(bA-b);
W :=A-B
Z :=A*B
End;
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
4. (a) Consider the following Pascal function where A and B are non-zero positive
integers. What is the value of GET(3,2)?
function GET(A,B:integer);integer;
begin
if B = 0 then
GET:=1
else if A < B then
GET:=0
else
GET:=GET(A-1,B)+GET(A-1,B-1)
end ;
(b) The Pascal procedure given for computing the transpose of an N × N (N>1)
matrix A of integers has an error. Find the error and correct it.
Assume that the following declaration are made in the main program
const
MAXSIZE=20;
type
INTARR=array [1.,MAXSIZE,1..MAXSIZE] of integer;
Procedure TRANSPOSE (var A: INTARR; N : integer);
var
I, J, TMP, integer;
begin
for I:=1 to NO – 1 do
for J:=1 to N do
begin
TMP: = A[I,J];
A[I,J]:=A[J,I];
A(J,I}:=TMP
end
end;
5. A computer installation has 1000k of main memory. The jobs arrive and finish in
the following sequences.
Job 1 requiring 200k arrives
Job 2 requiring 350k arrives
Job 3 requiring 300k arrives
Job 1 finishes
Job 4 requiring 120k arrives
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
Job 5 requiring 150k arrives
Job 6 requiring 80k arrives
(a) Draw the memory allocation table using Best Fit and First fit algorithms.
(b) Which algorithm performs better for this sequence?
6. What is the number of binary trees with 3 nodes which when traversed in post-
order give the sequence A, B, C? Draw all these binary trees.
7. (a) Determine the number of divisors of 600.
(b) Compute without using power series expansion
0
sin
lim
0x
x
→
SECTION – B
Answer any TEN questions.
8. Construct the LL(1) table for the following grammar.
1. Expr _Expr
2. Expr (Expr)
3. Expr Var Expr Tail
4. ExprTail _Expr
5. ExprTail λ
6. Var Id Var Tail
7. VarTail (Expr)
8. VarTail λ
9. Goal Expr$
9. (a) Translate the arithmetic expression ( )*a b c− + into syntax tree.
(b) A grammar is said to have cycles if it is the case that
AA ⇒ +
Show that no grammar that has cycles can be LL(I).
10. (a) Using the scope rules of Pascal determine the declaration that apply to each
occurrence of the names A and B in the following program segment.
procedure T(U, V, X, Y: integer);
var
A: record
A, B : integer
end;
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
B: record
B, A : integer
end;
begin
with A do
begin
A:=4;
B:=V
end;
with B do
begin
A:=X;
B:=Y
end
end;
(b) Find the lexical errors in the following Pascal statement:
if A > 1, then B = 2.5A else read (C);
11. Let L be a language over ∑ i.e., *
L ≤ ∑ . Suppose L satisfies the two conditions
given below
(i) L is in NP and
(ii) For every n, there is exactly one string of length n that belongs to L.
Let c
L be the complement of L over *
∑ . Show that c
L is also in NP.
12. Consider the following sequence of numbers
92, 37, 52, 12, 11, 25
Use bubblesort to arrange the sequence in ascending order. Give the sequence at
the end of each of the first five passes.
13. Obtain the principal (canonical) conjunctive normal form of the propositional
formula
( ) ( )p q V q r∧ ¬ ∧
Where ‘ ∧ ’ is logical and, ‘v’ is inclusive or and ¬ is negation.
14. If the overhead for formatting a disk is 96 bytes for 4000 byte sector,
(a) Compute the unformatted capacity of the disk for the following parameters:
Number of surfaces: 8
Outer diameter of the disk: 12 cm
Inner diameter of the disk: 4 cm
Inter track space: 0.1 mm
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
Number of sectors per track: 20
(b) if the disk in (a) is rotating at 360 rpm, determine the effective data transfer
rate which is defined as the number of bytes transferred per second between
disk and memory.
15. (a) Implement a circuit having the following output expression using an inverter
and NAND gate .Z A B C= + +
(b) What is the equivalent minimal Boolean expression (in sum of products form)
for the Karnaugh map given below?
16. The following is an 8085 assembly language program:
MVI B, OAH
MVI A, 05H
LXI H, IC40H
CALL SUB
HLT
SUB CMP M
RZ
INX H
DCR B
JNZ SUB
RET
(a) What does the program do?
(b) What are the contents of registers A and B initially?
(c) What are the contents of HL register pair after the execution of the program?
17. (a) An asynchronous serial communication controller that uses a start stop
scheme for controlling the serial I/O of a system is programmed for a string
of length seven bits, one parity bit (odd parity) and one step bit. The
transmission rate is 1200 bits/second.
(i) What is the complete bit stream that is transmitted for the string ‘0110101’?
(ii) How many such strings can be transmitted per second?
1
1
1
00 01 11 10
00
01
11
10
CD
AB
1
1 1
1
1
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
(b) Consider a CRT display that has a text mode display format of 80 × 25
characters with a 9 × 12 character cell. What is the size of the video buffer
RAM for the display to be used in monochrome (1 bit per pixel) graphics
mode?
18. The following is an incomplete Pascal function to convert a given decimal integer
(in the range -8 to +7) into a binary integer in 2’s complement representation.
Determine the expression A, B, C that complete program.
function TWOSCOMP (N:integer):integer;
var
RAM, EXPONENT:integer;
BINARY :integer;
begin
if(N>=-8) and (N<=+7) then
begin
if N<0 then
N : = A;
BINARY:=0;
EXPONENT:=1;
while N<>0 do
begin
REM:=N mod 2;
BINARY:=BINARY + B*EXPONENT;
EXPONENT:=EXPONENT*10;
N :=C
end
TWOSCOMP:=BINARY
end
end;
19. Consider the following program segment for concurrent processing using
semaphore operators P and V for synchronization. Draw the precedence graph for
the statements S1 to S9.
var
a, b, c, d, e, f, g, h, i, j, k : semaphore;
begin
cobegin
begin S1; V(a); V(b) end;
begin P(a); S2; V(c); V(d) end;
begin P(c); S4; V(c) end;
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
begin P(d); S5; V(f) end;
begin P(e); P(f); S7; V(k) end;
begin P(b); S3;V(g);V(h) end;
begin P(g); S6; V(i) end;
begin P(h); P(i); S8; V(j) end;
begin P(j); P(j); P(k); S9 end;
coend
end;
20. The head of a moving head disk with 100 tracks numbered 0 to 99 is currently
serving a request at tract 55. If the queue of requests kept in FIFO order is
10, 70, 75, 23, 65
Which of the two disk scheduling algorithms FCFS (First Come First Served) and
SSTF (Shortest Seek Time First) will require less head movement? Find the head
movement for each of the algorithms.
21. Let 1 2andG G be subgroups of a group G.
(a) Show that 1 2G G∩ is also a group of G
(b) Is 1 2G G∪ always a subgroup of G?
22. How many minimum spanning trees does the following graph have? Draw them.
(Weights are assigned to the edge).
23. Prove using mathematical induction for 2
5,2n
n n≥ >
24. Prove that in finite graph, the number of vertices of odd degree is always even.
25. (a) Find the minimum value of 2
3 4 2 .x x− +
(b) Determine the number of positive integers ( )720≤ which are not divisibly by
any of numbers 2, 3, and 5.
A B
C
DE
2
3
5
4
3
4
GATE CS - 1995 www.gateforum.com
Join discussion of this test paper at http://forum.gatementor.com
Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question
Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank,
interaction with IISc alumni in our online discussion forums, and more. For more details,
visit
www.gateforum.com
Think GATE Think GATE Forum
26. (a) Consider the relation scheme R(A, B, C) with the following functional
dependencies:
A, B C, C A
Show that the scheme R is the Third Normal Form (3NF) but not in Boyce-
Code Normal Form (BCNF).
(b) Determine the minimal keys of relation R.
27. Consider the relation scheme.
AUTHOR (ANAME, INSTITUTION, ACITY, AGE)
PUBLISHER (PNAME, PCITY)
BOOK (TITLE, ANAME, PNAME)
Express the following queries using (one or more of )SELECT, PROJECT, JOIN and
DIVIDE operations.
(a) Get the names of all publishers.
(b) Get values of all attributes of all authors who have published a book for the
publisher with PNAME = ‘TECHNICAL PUBLISHERS’.
(c) Get the names of all authors who have published a book for any publisher
located in Madras.

More Related Content

What's hot

B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years PapersRahul Jain
 
PGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperPGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperEneutron
 
Pgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paperPgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paperEneutron
 
Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 usadhi
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Sateesh Allu
 
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]Mumbai B.Sc.IT Study
 
An Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH DecoderAn Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH Decoderijsrd.com
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)Ankit Dubey
 
V cse cs6503 model qb1 1
V  cse cs6503  model qb1 1V  cse cs6503  model qb1 1
V cse cs6503 model qb1 1Ezhumalai p
 
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesAn ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesComputer Science Journals
 
Register Allocation
Register AllocationRegister Allocation
Register AllocationEelco Visser
 

What's hot (20)

Gate-Cs 1997
Gate-Cs 1997Gate-Cs 1997
Gate-Cs 1997
 
NET_Solved ans
NET_Solved ansNET_Solved ans
NET_Solved ans
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
 
B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (May - 2018) [IDOL - Revised Course | Question Paper]
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Gate-Cs 1993
Gate-Cs 1993Gate-Cs 1993
Gate-Cs 1993
 
1
11
1
 
PGCET Computer science 2017 question paper
PGCET Computer science 2017 question paperPGCET Computer science 2017 question paper
PGCET Computer science 2017 question paper
 
Pgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paperPgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paper
 
Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 u
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1
 
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]
B.Sc.IT: Semester - VI (April - 2015) [IDOL - Revised Course | Question Paper]
 
COCOON14
COCOON14COCOON14
COCOON14
 
Data structure
Data structureData structure
Data structure
 
An Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH DecoderAn Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH Decoder
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
V cse cs6503 model qb1 1
V  cse cs6503  model qb1 1V  cse cs6503  model qb1 1
V cse cs6503 model qb1 1
 
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite MachinesAn ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
An ElGamal Encryption Scheme of Adjacency Matrix and Finite Machines
 
G029037043
G029037043G029037043
G029037043
 
Register Allocation
Register AllocationRegister Allocation
Register Allocation
 

Viewers also liked

презентация итоги 2013 мкдоу 2
презентация итоги 2013 мкдоу 2презентация итоги 2013 мкдоу 2
презентация итоги 2013 мкдоу 2obuxowaira
 
Conscència fonologica
Conscència fonologicaConscència fonologica
Conscència fonologicaAnnaGarri
 
Refining Your Skills for the Not Too Distant Future
Refining Your Skills for the Not Too Distant FutureRefining Your Skills for the Not Too Distant Future
Refining Your Skills for the Not Too Distant Futureqmatheson
 
2013 december to 2014 march report guesswhere
2013 december to 2014 march report guesswhere2013 december to 2014 march report guesswhere
2013 december to 2014 march report guesswhereAtoutFranceUSA
 
Muckgers Media Advertising Kit
Muckgers Media Advertising KitMuckgers Media Advertising Kit
Muckgers Media Advertising KitMuckgers
 
Small Commercial Broker Survey Results
Small Commercial Broker Survey ResultsSmall Commercial Broker Survey Results
Small Commercial Broker Survey Resultsqmatheson
 
Paparan perubahan data maret 2013-
Paparan  perubahan data   maret 2013-Paparan  perubahan data   maret 2013-
Paparan perubahan data maret 2013-Andre Sahusilawane
 
Báo cáo lần 1
Báo cáo lần 1Báo cáo lần 1
Báo cáo lần 1Anhh Hữu
 
What kind of media institute may distribute your media product?
What kind of media institute may distribute your media product?What kind of media institute may distribute your media product?
What kind of media institute may distribute your media product?SamB117
 
04 การเผยแพร่ข่าวดี
04 การเผยแพร่ข่าวดี04 การเผยแพร่ข่าวดี
04 การเผยแพร่ข่าวดีNathanael Sonprint
 
Social media writing final portfolio
Social media writing final portfolioSocial media writing final portfolio
Social media writing final portfoliohhitzing
 
безопасность 156
безопасность  156безопасность  156
безопасность 156dou_156
 
Tera Melos - Band Presentation
Tera Melos - Band PresentationTera Melos - Band Presentation
Tera Melos - Band Presentationrileyjaynes
 
macroscop prezentacia WIDE security s.r.o
macroscop prezentacia WIDE security s.r.omacroscop prezentacia WIDE security s.r.o
macroscop prezentacia WIDE security s.r.oWIDE security s.r.o.
 
Lady gaga-telephone
Lady gaga-telephoneLady gaga-telephone
Lady gaga-telephoneAna Figueras
 

Viewers also liked (20)

презентация итоги 2013 мкдоу 2
презентация итоги 2013 мкдоу 2презентация итоги 2013 мкдоу 2
презентация итоги 2013 мкдоу 2
 
Conscència fonologica
Conscència fonologicaConscència fonologica
Conscència fonologica
 
Refining Your Skills for the Not Too Distant Future
Refining Your Skills for the Not Too Distant FutureRefining Your Skills for the Not Too Distant Future
Refining Your Skills for the Not Too Distant Future
 
2013 december to 2014 march report guesswhere
2013 december to 2014 march report guesswhere2013 december to 2014 march report guesswhere
2013 december to 2014 march report guesswhere
 
Apple inc
Apple incApple inc
Apple inc
 
Muckgers Media Advertising Kit
Muckgers Media Advertising KitMuckgers Media Advertising Kit
Muckgers Media Advertising Kit
 
Small Commercial Broker Survey Results
Small Commercial Broker Survey ResultsSmall Commercial Broker Survey Results
Small Commercial Broker Survey Results
 
Q1
Q1Q1
Q1
 
Paparan perubahan data maret 2013-
Paparan  perubahan data   maret 2013-Paparan  perubahan data   maret 2013-
Paparan perubahan data maret 2013-
 
Báo cáo lần 1
Báo cáo lần 1Báo cáo lần 1
Báo cáo lần 1
 
What kind of media institute may distribute your media product?
What kind of media institute may distribute your media product?What kind of media institute may distribute your media product?
What kind of media institute may distribute your media product?
 
CV
CVCV
CV
 
04 การเผยแพร่ข่าวดี
04 การเผยแพร่ข่าวดี04 การเผยแพร่ข่าวดี
04 การเผยแพร่ข่าวดี
 
Media Ethics
Media EthicsMedia Ethics
Media Ethics
 
Digital marketing statistics & User Information
Digital marketing statistics & User InformationDigital marketing statistics & User Information
Digital marketing statistics & User Information
 
Social media writing final portfolio
Social media writing final portfolioSocial media writing final portfolio
Social media writing final portfolio
 
безопасность 156
безопасность  156безопасность  156
безопасность 156
 
Tera Melos - Band Presentation
Tera Melos - Band PresentationTera Melos - Band Presentation
Tera Melos - Band Presentation
 
macroscop prezentacia WIDE security s.r.o
macroscop prezentacia WIDE security s.r.omacroscop prezentacia WIDE security s.r.o
macroscop prezentacia WIDE security s.r.o
 
Lady gaga-telephone
Lady gaga-telephoneLady gaga-telephone
Lady gaga-telephone
 

Similar to Gate-Cs 1995

Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years PapersRahul Jain
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperEneutron
 
Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Rahul Jain
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years PapersRahul Jain
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfahmed8651
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperAlex Stewart
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomeshpraveensomesh
 

Similar to Gate-Cs 1995 (20)

Gate-Cs 1998
Gate-Cs 1998Gate-Cs 1998
Gate-Cs 1998
 
Gate-Cs 1996
Gate-Cs 1996Gate-Cs 1996
Gate-Cs 1996
 
Gate-Cs 1999
Gate-Cs 1999Gate-Cs 1999
Gate-Cs 1999
 
Cs 2001
Cs 2001Cs 2001
Cs 2001
 
Gate-Cs 2007
Gate-Cs 2007Gate-Cs 2007
Gate-Cs 2007
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Gate-Cs 2010
Gate-Cs 2010Gate-Cs 2010
Gate-Cs 2010
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paper
 
Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Gate Previous Years Papers It2005
Gate Previous Years Papers It2005
 
Gate-Cs 1991
Gate-Cs 1991Gate-Cs 1991
Gate-Cs 1991
 
Me 2001-unsolved
Me 2001-unsolvedMe 2001-unsolved
Me 2001-unsolved
 
Gate-Cs 2009
Gate-Cs 2009Gate-Cs 2009
Gate-Cs 2009
 
Cs gate-2011
Cs gate-2011Cs gate-2011
Cs gate-2011
 
Cs gate-2011
Cs gate-2011Cs gate-2011
Cs gate-2011
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
 
Gate-Cs 2008
Gate-Cs 2008Gate-Cs 2008
Gate-Cs 2008
 
Cs 2008(1)
Cs 2008(1)Cs 2008(1)
Cs 2008(1)
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 

More from Ravi Rajput

Audio visual round fun quiz competition
Audio visual round fun quiz competitionAudio visual round fun quiz competition
Audio visual round fun quiz competitionRavi Rajput
 
Mozilla Firefox 10 Principles
Mozilla Firefox 10 PrinciplesMozilla Firefox 10 Principles
Mozilla Firefox 10 PrinciplesRavi Rajput
 
Presentation over Wi-Fi technology
Presentation over Wi-Fi technologyPresentation over Wi-Fi technology
Presentation over Wi-Fi technologyRavi Rajput
 
UTU Syllabus for CSE & IT 2nd year
UTU Syllabus for CSE & IT 2nd yearUTU Syllabus for CSE & IT 2nd year
UTU Syllabus for CSE & IT 2nd yearRavi Rajput
 
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)Ravi Rajput
 
Computer network unit 1 notes
Computer network unit  1 notesComputer network unit  1 notes
Computer network unit 1 notesRavi Rajput
 
Presentation on-video-conferencing-basics4468-ravi shankar-pc
Presentation on-video-conferencing-basics4468-ravi shankar-pcPresentation on-video-conferencing-basics4468-ravi shankar-pc
Presentation on-video-conferencing-basics4468-ravi shankar-pcRavi Rajput
 
Basic html tutorial
Basic html tutorialBasic html tutorial
Basic html tutorialRavi Rajput
 

More from Ravi Rajput (12)

Audio visual round fun quiz competition
Audio visual round fun quiz competitionAudio visual round fun quiz competition
Audio visual round fun quiz competition
 
Ethical hacking
Ethical hackingEthical hacking
Ethical hacking
 
Mozilla Firefox 10 Principles
Mozilla Firefox 10 PrinciplesMozilla Firefox 10 Principles
Mozilla Firefox 10 Principles
 
Presentation over Wi-Fi technology
Presentation over Wi-Fi technologyPresentation over Wi-Fi technology
Presentation over Wi-Fi technology
 
UTU Syllabus for CSE & IT 2nd year
UTU Syllabus for CSE & IT 2nd yearUTU Syllabus for CSE & IT 2nd year
UTU Syllabus for CSE & IT 2nd year
 
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)
Syllabus cs and_IT 2nd year UTU( Uttarakhand technical university)
 
Computer network unit 1 notes
Computer network unit  1 notesComputer network unit  1 notes
Computer network unit 1 notes
 
Cs gate-2012
Cs gate-2012Cs gate-2012
Cs gate-2012
 
Gate-Cs 2006
Gate-Cs 2006Gate-Cs 2006
Gate-Cs 2006
 
4 sem unix 2011
4 sem unix 20114 sem unix 2011
4 sem unix 2011
 
Presentation on-video-conferencing-basics4468-ravi shankar-pc
Presentation on-video-conferencing-basics4468-ravi shankar-pcPresentation on-video-conferencing-basics4468-ravi shankar-pc
Presentation on-video-conferencing-basics4468-ravi shankar-pc
 
Basic html tutorial
Basic html tutorialBasic html tutorial
Basic html tutorial
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Gate-Cs 1995

  • 1. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum SECTION - A 1. This question has 25 parts. Each part carries 1 mark. Choose the correct alternative for each part. 1.1 A single instruction to clear the lower four bits of the accumulator in 8085 assebly language? (a) XRI OFH (b) ANI FOH (c) XRI FOH (d) ANI OFH 1.2 Which of the following statements is true? (a) ROM is a Read/Write memory (b) PC points to the last instruction that was executed (c) Stack works on the principle of LIFO (d) All instructions affect the flags 1.3 In a vectored interrupt (a) the branch address is assigned to a fixed location in memory (b) the interrupt source supplies the branch information to the processor through an interrupt vector (c) the branch address is obtained from a register in the processor (d) none of the above 1.4 In the following Pascal program segment, what is the value of X after the execution of the program segment? X:=-10; Y:=20; If X > Y then if X < 0 then X:=abs(X) else X:=2*X; (a) 10 (b) -20 (c) -10 (d) None 1.5 Merge sort uses (a) Divide and conquer strategy (b) Backtracking approach (c) Heuristic search (d) Greedy approach 1.6 The principle of locality justifies the use of (a) interrupts (b) DMA (c) Polling (d) Cache Memory 1.7 In a paged segmented scheme of memory management, the segment table itself must have a page table because (a) the segment table is often too large to fit in one page (b) each segment is spread over a number of pages
  • 2. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum (c) segment tables point to page table and not to the physical locations of the segment (d) the processor’s description base register points to a page table 1.8 Which of the following page replacement algorithms suffers from Belady’s anamoly? (a) Optimal replacement (b) LRU (c) FIFO (d) Both (a) and (c) 1.9 In some programming languages, an identifier is permitted to be a letter following by any number of letters or digits. If L and D denote the sets of letters and digits respectively, which of the following expressions defines an identifier? (a) ( )L D + ∪ (b) ( ) * L L D∪ (c) ( ) * .L D (d) ( ) * . .L L D 1.10 Consider a grammar with the following productions S a b b c aB S S b S b b ab S bd b b → ∝ ∝ →∝ →∝ ∝→ The above grammar is: (a) Context free (b) Regular (c) Context sensitive (d) LR(k) 1.11 What are x and y in the following macro definition? macro Add x,y Load y Mul x Store y end macro (a) Variables (b) Identifiers (c) Actual parameters (d) Formal parameters 1.12 What is the distance of the following code 000000, 010101, 000111, 011001, 111111? (a) 2 (b) 3 (c) 4 (d) 1 1.13 Which of the following strings can definitely be said to be tokens without looking at the next input character while compiling a Pascal program? I. begin II. program III. <>
  • 3. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum (a) I (b) II (c) III (d) All of the above 1.14 A linker is given object modules for a set of programs that were compiled separately. What information need to be included in an object module? (a) Object code (b) Relocation bits (c) Names and locations of all external symbols defined in the object module (d) Absolute addresses of internal symbols 1.15 Which scheduling policy is most suitable for a time shared operating system? (a) Shortest Job First (b) Round Robin (c) First Come First Serve (d) Elevator 1.16 For merging two sorted lists of sizes m and n into a sorted list of size m+n, we required comparisons of (a) ( )O m (b) ( )O n (c) ( )O m n+ (d) ( )log logO m n+ 1.17 A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is: (a) 2log n (b) 1n − (c) n (d) 2n 1.18 The probability that a number selected at random between 100 and 999 (both inclusive) will not contain the digit 7 is: (a) 16 25 (b) 3 9 10       (c) 27 75 (d) 18 25 1.19. Let R be a symmetric and transitive relation on a set A. Then (a) R is reflexive and hence an equivalence relation (b) R is reflexive and hence a partial order (c) R is reflexive and hence not an equivalence relation (d) None of the above 1.20. The number of elements in he power set ( )P S of the set ( ) ( ){ },1, 2,3S φ= is: (a) 2 (b) 4 (c) 8 (d) None of the above
  • 4. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 1.21. In the interval 0,π   the equation cosx x= has (a) No solution (b) Exactly one solution (c) Exactly two solutions (d) An infinite number of solutions 1.22. If at every point of a certain curve, the slope of the tangent equals 2x y − the curve is (a) a straight line (b) a parabola (c) a circle (d) an ellipse 1.23. The value of k for which 2 2 4 8 0x xy ky− + = does not represent a pair of straight lines (both passing through the origin) is: (a) 0 (b) 2 (c) 9 (d) 3 1.24. The rank of the following ( ) ( )1 1n n+ × + matrix, where a is a real number is 2 2 2 1 1 1 n n n a a a a a a a a a                 L L M M M M M M M M L (a) 1 (b) 2 (c) n (d) Depends on the value of a 1.25 The minimum number of edges in a connected cyclic graph on n vertices is: (a) n - 1 (b) n (c) n + 1 (d) None of the above 2. This question has 25 parts. Each part carries 2 Marks. Choose the correct alternative for each part. 2.1 A sequence of two instructions that multiplies the contents of the DE register pair by 2 and stores the result in the HL register pair (in 8085 assembly language) is: (a) XCHG and DAD B (b) XTHL and DAD H (c) PCHL and DAD D (d) XCHG and DAD H 2.2. The capacity of a memory unit is defined by the number of words multiplied by the number of bits/word. How many separate address and data lines are needed for a memory of 4 K × 16? (a) 10 address, 16 data lines (b) 11 address, 8 data lines
  • 5. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum (c) 12 address, 16 data lines (d) 12 address, 12 data lines 2.3. Assume that X and Y are non-zero positive integers. What does the following Pascal program segment do? while X <>Y do if X > Y then X:=X – Y else Y:=Y – X; write(X); (a) Computes the LCM of two numbers (b) Divides the larger number by the smaller number (c) Computes the GCD of two numbers (d) None of the above 2.4. What is the value of X printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 Find(X) Writeln(X) end (a) 2 (b) 2 (c) Run time error (d) None of the above 2.5. What values of A, B, C and D satisfy the following simultaneous Boolean equations? 0, ,A AB AB AC AB AC CD CD+ = = + + = (a) A = 1, B = 0, C = 0, D = 1 (b) A = 1, B = 1, C = 0, D = 0 (c) A = 1, B = 0, C = 1, D = 1 (d) A = 1, B = 0, C = 0, D = 0
  • 6. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 2.6. The sequence …………… is an optimal non-preemptive scheduling sequence for the following jobs which leaves the CPU idle for ……………………. unit(s) of time. (a) {3,2,1),1 (b) (2,1,3},0 (c) {3,2,1),0 (d) {1,2,3},5 2.7. The address sequence generated by tracing a particular program executing in a pure demand paging system with 100 records per page with 1 free main memory frame is recorded as follows. What is the number of page faults? 0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370 (a) 13 (b) 8 (c) 7 (d) 10 2.8. If the cube roots of unity are 1, ω and ω2 , then the roots of the following equation are ( ) 3 1 8 0x − + = (a) -1, 1 + 2ω, 1 + 2ω2 (b) 1, 1 - 2ω, 1 - 2ω2 (c) -1, 1 - 2ω, 1 - 2ω2 (d) -1, 1 + 2ω, -1 + 2ω2 2.9. A language with string manipulation facilities uses the following operations head(s): first character of a string tail(s): all but the first character of astring concat(s1,s2):s1 s2 for the string acbc what will be the output of concat(head(s), head(tail(tail(s)))) (a) ac (b) bc (c) ab (d) cc 2.10. A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar { } { } { } print"1" print"2" print"3" S xxW S y W Sz → → → What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules? (a) 23131 (b) 11233 (c) 11231 (d) 33211 Job Arrival time Burst time 1 0.0 9 2 0.6 5 3 1.0 1
  • 7. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 2.11. A variant record in Pascal is defined by type varirec = record number : integer; case (var1,var2) of var1: (x,y : integer); var2: (p.q.: real) end end Suppose an array of 100 records was declared on a machine which uses 4 bytes for an integer and 8 bytes for a real. How much space would the compiler have to reserve for the array? (a) 2800 (b) 2400 (c) 2000 (d) 1200 2.12. The number of 1’s in the binary representation of ( )3 * 4096 15 * 256 5 *16 3+ + + are: (a) 8 (b) 9 (c) 10 (d) 12 2.13. A unit vector perpendicular to both the vectors 2 2 and 1 2a i j k b j k= − + = + − is: (a) ( ) 1 3 i j k+ + (b) ( ) 1 3 i j k+ − (c) ( ) 1 3 i j k− − (d) ( ) 1 3 i j k+ − 2.14. A bag contains 10 white balls and 15 black balls. Two balls are drawn in succession. The probability that one of them is black and the other is white is: (a) 2 3 (b) 4 5 (c) 1 2 (d) 2 1 2.15. The iteration formula to find the square root of a positive real number b using the Newton Raphson method is (a) ( )1 3 2k k kx x b x+ = + (b) ( )1 3 2k k b kx x x+ += (c) ( )2 1 2k k k kx x x x b+ = − + (d) None of the above 2.16. In a virtual memory system the address space specified by the address lines of the CUP must be __________ than the physical memory size and _______ than the secondary storage size. (a) smaller, smaller (b) smaller, larger (c) larger, smaller (d) larger, larger
  • 8. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 2.17. Let A be the set of all non-singular matrices over real number and let* be the matrix multiplication operation. Then (a) A is closed under* but < A, *> is not a semigroup (b) <A, *> is a semigroup but not a monoid (c) <A, *> is a monoid but not a group (d) <A, *> is a group but not an abelian group 2.18. The solution of differential equation 3 2 0y y y′′ ′+ + = is of the form (a) 2 1 2 x x C e C e+ (b) 3 1 2 x x C e C e− + (c) 2 1 2 x x C e C e− − + (d) 2 1 22x x C e C− − + 2.19. If the proposition p ν¬ ⇒ is true, then the truth value of the proposition ( ),pV p q¬ ⇒ where ¬ is negation, ‘V’ is inclusive or and ⇒ is implication, is (a) true (b) multiple valued (c) false (d) cannot be determined 2.20. Which of the following definitions below generates the same language as L, where { }such that 1 ?n n L x y n= >= I. E xE y xy→ II. ( )x y x xyy+ + III. x y+ + (a) I only (b) I and II (c) II and III (d) II only 2.21. The postfix expression for the infix expression ( )* / *A B C D F D E+ + + is: (a) AB + CD + *F/D + E* (b) ABCD + *F/DE*++ (c) A *B + CD/F *DE++ (d) A + *BCD/F* DE++ 2.22. Which of the following statements is true? I. As the number of entries in a hash table increases, the number of collisions increases. II. Recursive programs are efficient III. The worst case complexity for Quicksort is ( )2 O n IV. Binary search using a linear linked list is efficient. (a) I and II (b) II and III (c) I and IV (d) I and III
  • 9. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 2.23. A finite state machine with the following state table has a single input x and a single out z. present state next state, z x=1 x=0 A D, 0 B, 0 B B, 1 C, 1 C B, 0 D, 1 D B, 1 C, 0 If the initial state is unknown, then the shortest input sequence to reach the final state C is: (a) 01 (b) 10 (c) 101 (d) 110 2.24. Let { } { }* 0,1 , and 0 1 such that 0n n L R n∑ = = ∑ = > then the languages L R∪ and R are respectively (a) regular, regular (b) not regular, regular (c) regular, not regular (d) not regular, no regular 2.25. A computer system has a 4K word cache organized in block-set-associative manner with 4 blocks per set, 64 words per block. The number of bits in the SET and WORD fields of the main memory address format is: (a) 15, 40 (b) 6, 4 (c) 7, 2 (d) 4, 6 3. Consider the following high level program segment. Give the contents of the memory locations for variables W, X, Y and Z after the execution of the program segment. The values of the variables A and B are 5 CH and 92H, respectively. Also indicate error conditions if any. var A, B, W, X, Y :unsigned byte; Z :unsigned integer, (each integer is represented by two bytes) begin X :=A+B Y :=abs(bA-b); W :=A-B Z :=A*B End;
  • 10. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 4. (a) Consider the following Pascal function where A and B are non-zero positive integers. What is the value of GET(3,2)? function GET(A,B:integer);integer; begin if B = 0 then GET:=1 else if A < B then GET:=0 else GET:=GET(A-1,B)+GET(A-1,B-1) end ; (b) The Pascal procedure given for computing the transpose of an N × N (N>1) matrix A of integers has an error. Find the error and correct it. Assume that the following declaration are made in the main program const MAXSIZE=20; type INTARR=array [1.,MAXSIZE,1..MAXSIZE] of integer; Procedure TRANSPOSE (var A: INTARR; N : integer); var I, J, TMP, integer; begin for I:=1 to NO – 1 do for J:=1 to N do begin TMP: = A[I,J]; A[I,J]:=A[J,I]; A(J,I}:=TMP end end; 5. A computer installation has 1000k of main memory. The jobs arrive and finish in the following sequences. Job 1 requiring 200k arrives Job 2 requiring 350k arrives Job 3 requiring 300k arrives Job 1 finishes Job 4 requiring 120k arrives
  • 11. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum Job 5 requiring 150k arrives Job 6 requiring 80k arrives (a) Draw the memory allocation table using Best Fit and First fit algorithms. (b) Which algorithm performs better for this sequence? 6. What is the number of binary trees with 3 nodes which when traversed in post- order give the sequence A, B, C? Draw all these binary trees. 7. (a) Determine the number of divisors of 600. (b) Compute without using power series expansion 0 sin lim 0x x → SECTION – B Answer any TEN questions. 8. Construct the LL(1) table for the following grammar. 1. Expr _Expr 2. Expr (Expr) 3. Expr Var Expr Tail 4. ExprTail _Expr 5. ExprTail λ 6. Var Id Var Tail 7. VarTail (Expr) 8. VarTail λ 9. Goal Expr$ 9. (a) Translate the arithmetic expression ( )*a b c− + into syntax tree. (b) A grammar is said to have cycles if it is the case that AA ⇒ + Show that no grammar that has cycles can be LL(I). 10. (a) Using the scope rules of Pascal determine the declaration that apply to each occurrence of the names A and B in the following program segment. procedure T(U, V, X, Y: integer); var A: record A, B : integer end;
  • 12. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum B: record B, A : integer end; begin with A do begin A:=4; B:=V end; with B do begin A:=X; B:=Y end end; (b) Find the lexical errors in the following Pascal statement: if A > 1, then B = 2.5A else read (C); 11. Let L be a language over ∑ i.e., * L ≤ ∑ . Suppose L satisfies the two conditions given below (i) L is in NP and (ii) For every n, there is exactly one string of length n that belongs to L. Let c L be the complement of L over * ∑ . Show that c L is also in NP. 12. Consider the following sequence of numbers 92, 37, 52, 12, 11, 25 Use bubblesort to arrange the sequence in ascending order. Give the sequence at the end of each of the first five passes. 13. Obtain the principal (canonical) conjunctive normal form of the propositional formula ( ) ( )p q V q r∧ ¬ ∧ Where ‘ ∧ ’ is logical and, ‘v’ is inclusive or and ¬ is negation. 14. If the overhead for formatting a disk is 96 bytes for 4000 byte sector, (a) Compute the unformatted capacity of the disk for the following parameters: Number of surfaces: 8 Outer diameter of the disk: 12 cm Inner diameter of the disk: 4 cm Inter track space: 0.1 mm
  • 13. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum Number of sectors per track: 20 (b) if the disk in (a) is rotating at 360 rpm, determine the effective data transfer rate which is defined as the number of bytes transferred per second between disk and memory. 15. (a) Implement a circuit having the following output expression using an inverter and NAND gate .Z A B C= + + (b) What is the equivalent minimal Boolean expression (in sum of products form) for the Karnaugh map given below? 16. The following is an 8085 assembly language program: MVI B, OAH MVI A, 05H LXI H, IC40H CALL SUB HLT SUB CMP M RZ INX H DCR B JNZ SUB RET (a) What does the program do? (b) What are the contents of registers A and B initially? (c) What are the contents of HL register pair after the execution of the program? 17. (a) An asynchronous serial communication controller that uses a start stop scheme for controlling the serial I/O of a system is programmed for a string of length seven bits, one parity bit (odd parity) and one step bit. The transmission rate is 1200 bits/second. (i) What is the complete bit stream that is transmitted for the string ‘0110101’? (ii) How many such strings can be transmitted per second? 1 1 1 00 01 11 10 00 01 11 10 CD AB 1 1 1 1 1
  • 14. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum (b) Consider a CRT display that has a text mode display format of 80 × 25 characters with a 9 × 12 character cell. What is the size of the video buffer RAM for the display to be used in monochrome (1 bit per pixel) graphics mode? 18. The following is an incomplete Pascal function to convert a given decimal integer (in the range -8 to +7) into a binary integer in 2’s complement representation. Determine the expression A, B, C that complete program. function TWOSCOMP (N:integer):integer; var RAM, EXPONENT:integer; BINARY :integer; begin if(N>=-8) and (N<=+7) then begin if N<0 then N : = A; BINARY:=0; EXPONENT:=1; while N<>0 do begin REM:=N mod 2; BINARY:=BINARY + B*EXPONENT; EXPONENT:=EXPONENT*10; N :=C end TWOSCOMP:=BINARY end end; 19. Consider the following program segment for concurrent processing using semaphore operators P and V for synchronization. Draw the precedence graph for the statements S1 to S9. var a, b, c, d, e, f, g, h, i, j, k : semaphore; begin cobegin begin S1; V(a); V(b) end; begin P(a); S2; V(c); V(d) end; begin P(c); S4; V(c) end;
  • 15. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum begin P(d); S5; V(f) end; begin P(e); P(f); S7; V(k) end; begin P(b); S3;V(g);V(h) end; begin P(g); S6; V(i) end; begin P(h); P(i); S8; V(j) end; begin P(j); P(j); P(k); S9 end; coend end; 20. The head of a moving head disk with 100 tracks numbered 0 to 99 is currently serving a request at tract 55. If the queue of requests kept in FIFO order is 10, 70, 75, 23, 65 Which of the two disk scheduling algorithms FCFS (First Come First Served) and SSTF (Shortest Seek Time First) will require less head movement? Find the head movement for each of the algorithms. 21. Let 1 2andG G be subgroups of a group G. (a) Show that 1 2G G∩ is also a group of G (b) Is 1 2G G∪ always a subgroup of G? 22. How many minimum spanning trees does the following graph have? Draw them. (Weights are assigned to the edge). 23. Prove using mathematical induction for 2 5,2n n n≥ > 24. Prove that in finite graph, the number of vertices of odd degree is always even. 25. (a) Find the minimum value of 2 3 4 2 .x x− + (b) Determine the number of positive integers ( )720≤ which are not divisibly by any of numbers 2, 3, and 5. A B C DE 2 3 5 4 3 4
  • 16. GATE CS - 1995 www.gateforum.com Join discussion of this test paper at http://forum.gatementor.com Join All India Mock GATE Classroom Test Series - 2007 conducted by GATE Forum in over 25 cities all over India. Question Papers including section tests and full tests are designed by IISc alumni according to the latest syllabus. Percentile, All India Rank, interaction with IISc alumni in our online discussion forums, and more. For more details, visit www.gateforum.com Think GATE Think GATE Forum 26. (a) Consider the relation scheme R(A, B, C) with the following functional dependencies: A, B C, C A Show that the scheme R is the Third Normal Form (3NF) but not in Boyce- Code Normal Form (BCNF). (b) Determine the minimal keys of relation R. 27. Consider the relation scheme. AUTHOR (ANAME, INSTITUTION, ACITY, AGE) PUBLISHER (PNAME, PCITY) BOOK (TITLE, ANAME, PNAME) Express the following queries using (one or more of )SELECT, PROJECT, JOIN and DIVIDE operations. (a) Get the names of all publishers. (b) Get values of all attributes of all authors who have published a book for the publisher with PNAME = ‘TECHNICAL PUBLISHERS’. (c) Get the names of all authors who have published a book for any publisher located in Madras.