2025
GATE CSE 2025 Set 2GATE CSE 2025 Set 12024
GATE CSE 2024 Set 2GATE CSE 2024 Set 12023
GATE CSE 20232022
GATE CSE 20222021
GATE CSE 2021 Set 2GATE CSE 2021 Set 12020
GATE CSE 20202019
GATE CSE 20192018
GATE CSE 20182017
GATE CSE 2017 Set 2GATE CSE 2017 Set 12016
GATE CSE 2016 Set 2GATE CSE 2016 Set 12015
GATE CSE 2015 Set 3GATE CSE 2015 Set 2GATE CSE 2015 Set 12014
GATE CSE 2014 Set 3GATE CSE 2014 Set 2GATE CSE 2014 Set 12013
GATE CSE 20132012
GATE CSE 20122011
GATE CSE 20112010
GATE CSE 20102009
GATE CSE 20092008
GATE CSE 20082007
GATE CSE 20072006
GATE CSE 20062005
GATE CSE 20052004
GATE CSE 20042003
GATE CSE 20032002
GATE CSE 20022001
GATE CSE 20012000
GATE CSE 20001999
GATE CSE 19991998
GATE CSE 19981997
GATE CSE 19971996
GATE CSE 19961995
GATE CSE 19951994
GATE CSE 19941993
GATE CSE 19931992
GATE CSE 19921991
GATE CSE 19911990
GATE CSE 19901989
GATE CSE 19891988
GATE CSE 19881987
GATE CSE 1987GATE CSE 1995
Paper was held on Thu, Jan 1, 1970 12:00 AM
1
For merging two sorted lists of sizes m and n into a sorted list of size m+n, we require comparisons of
2
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 O(n2)
IV. Binary search using a linear linked list is efficient.
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 O(n2)
IV. Binary search using a linear linked list is efficient.
3
Merge sort uses
4
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?
5
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. <>
6
A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar.
$$\eqalign{ & S \to xxW\,\left\{ {pr{\mathop{\rm int}} \,'1'} \right\} \cr & S \to y\,\left\{ {pr{\mathop{\rm int}} \,'2'} \right\} \cr & W \to Sz\,\left\{ {pr{\mathop{\rm int}} \,'3'} \right\} \cr} $$What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules?
7
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?
8
A $$ROM$$ is used to store a truth table for a binary multiplier unit that will multiply two $$4$$ bit numbers. The size of the $$ROM$$ (number of words $$ \times $$ number of bits) that is required to accommodate the truth table is $$M$$ words $$ \times $$ $$N$$ bits. Write the values of $$M$$ and $$N$$.
9
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 $$4K$$ $$ \times $$ $$16?$$
10
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
11
In a vectored interrupt
12
A binary tree T has n leaf nodes. The number of nodes of degree 2 in T is:
13
The postfix expression for the infix expression
A + B * (C + D) / F + D * E is:
14
(a) Consider the relation scheme $$R(A, B, C)$$ with the following functional dependencies:
$$\eqalign{ & A,B \to C \cr & \,\,\,\,\,\,C \to A \cr} $$
Show that the scheme $$R$$ is the Third Normal Form $$(3NF)$$ but not in Boyce-Code Normal Form $$(BCNF).$$
$$\eqalign{ & A,B \to C \cr & \,\,\,\,\,\,C \to A \cr} $$
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.$$
15
$$\mathop {Lim}\limits_{x \to \infty } {{{x^3} - \cos x} \over {{x^2} + {{\left( {\sin x} \right)}^2}}} = \_\_\_\_\_\_.$$
16
A bag contains 10 white balls and 15 black balls. Two balls drawn in succession. The probability that one of them is black the other is white is
17
Let A be the set of all nonsingular matrices over real numbers and let * be the matrix multiplication operator. Then
18
The number of elements in the power set $$P(S)$$ of the set $$S = \left\{ {\left\{ \phi \right\},1,\left\{ {2,3} \right\}} \right\}$$ is
19
Let $$R$$ be a symmetric and transitive relation on a set $$A$$. Then
20
The rank of the following (n + 1) x (n + 1) matrix, where a is a real number is
$$$\left[ {\matrix{
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
. & . & . & . & . & . & . \cr
. & . & . & . & . & . & . \cr
. & . & . & . & . & . & . \cr
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
} } \right]$$$
21
The rank of the following (n + 1) x (n + 1) matrix, where a is a real number is
$$$\left[ {\matrix{
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
. & . & . & . & . & . & . \cr
. & . & . & . & . & . & . \cr
. & . & . & . & . & . & . \cr
1 & a & {{a^2}} & . & . & . & {{a^n}} \cr
} } \right]$$$
22
If at every point of a certain curve, the slope of the tangent equals $${{ - 2x} \over y}$$ the curve is
23
Let $${G_1}$$ and $${G_2}$$ be subgroups of a group $$G$$.
(a) Show that $${G_1}\, \cap \,{G_2}$$ is also a subgroup of $$G$$.
(b) $${\rm I}$$s $${G_1}\, \cup \,{G_2}$$ always a subgroup of $$G$$?
(a) Show that $${G_1}\, \cap \,{G_2}$$ is also a subgroup of $$G$$.
(b) $${\rm I}$$s $${G_1}\, \cup \,{G_2}$$ always a subgroup of $$G$$?
24
Prove that in a finite graph, the number of vertices of odd degree is always even.
25
How many minimum spanning tress does the following graph have? Draw them (Weights are assigned to the edges).
26
If the proposition $$\neg p \Rightarrow q$$ is true, then the truth value of the proposition $$\neg p \vee \left( {p \Rightarrow q} \right)$$ where $$'\neg '$$ is negation, $$' \vee '$$ is inclusive or and $$' \Rightarrow '$$ is implication, is
27
The probability that a number selected at random between $$100$$ and $$999$$ (both inclusive ) will not contain the digit $$7$$ is
28
In a paged segmented scheme of memory management, the segment table itself must have a page table because:
29
The principle of locality justifies the use of
30
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?
31
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 $$
32
In a virtual memory system the address space specified by the address lines of the $$CPU$$ must be __________ than the physical memory size and _______ than the secondary storage size.
33
A computer installation has 1000K of main memory. The jobs arrive and finish in the following sequence.
Job 1 requiring 200k arrives
Job 2 requiring 350k arrives
Job 3 requiring 300k arrives
Job 1 finishes
Job 4 requiring 120k arrives
Job 5 requiring 150k arrives
Job 6 requiring 80k arrives
Job 1 requiring 200k arrives
Job 2 requiring 350k arrives
Job 3 requiring 300k arrives
Job 1 finishes
Job 4 requiring 120k arrives
Job 5 requiring 150k arrives
Job 6 requiring 80k arrives
(a) Draw the memory allocation table using Best Fit and First fit algorithm.
(b) Which algorithm performs better for this sequence?
34
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 $$4K\,\, \times \,\,16?$$
35
If the disk in (a) is rotating at $$3600$$ rpm, determine the effective data transfer rate which is defined as the number of bytes transferred per second between disk and memory.
36
If the overhead for formatting a disk is $$96$$ bytes for $$40000$$ bytes sector, Compute the unformatted capacity of the disk of the following parameters:
Number of surface: $$8$$
Outer diameter of the disk : $$12cm$$
Inner diameter of the disk: $$4cm$$
Inter track space: $$0.1mm$$
Number of sectors per track: $$20$$
Number of surface: $$8$$
Outer diameter of the disk : $$12cm$$
Inner diameter of the disk: $$4cm$$
Inter track space: $$0.1mm$$
Number of sectors per track: $$20$$
37
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.
38
Which scheduling policy is most suitable for a time-shared operating systems?
39
The sequence $$.........$$ is an optimal non-preemptive scheduling sequence for the following jobs which leaves the $$CPU$$ idle for $$..........$$ Unit (s) of time
40
What are x and y in the following macro definition?
macro Add x,y
Load y
Mul x
Store y
end macro
macro Add x,y
Load y
Mul x
Store y
end macro
41
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
42
A finite state machine with the following state table has a single input $$X$$ and a single out $$Z$$.

If the initial state is unknown, then the shortest input sequence to reach the final state $$C$$ is here, since initial make unknown $$m$$ $$10$$ input we can each final state $$C$$ with shortest path.
43
Which of the following definitions below generates the same language as $$L$$
Where $$L = {\left\{ x \right.^n}{y^n}\left| {n \ge \left. 1 \right\}} \right.$$
i) $$\,\,E \to xEy\left| {xy} \right.$$
ii) $$\,\,xy\left| {\left( {{x^ + }xy{y^ + }} \right)} \right.$$
iii) $${\,\,{x^ + }{y^ + }}$$
$$L = \left\{ {xn\,{y^n}\left| {n \ge 1} \right.} \right\} - $$ generates string where equal no. of $$x$$ and equal no. of $$y's.$$
$$E \to XBy\left| {xy\,abo} \right.$$ generators tips same.
Where $$L = {\left\{ x \right.^n}{y^n}\left| {n \ge \left. 1 \right\}} \right.$$
i) $$\,\,E \to xEy\left| {xy} \right.$$
ii) $$\,\,xy\left| {\left( {{x^ + }xy{y^ + }} \right)} \right.$$
iii) $${\,\,{x^ + }{y^ + }}$$
$$L = \left\{ {xn\,{y^n}\left| {n \ge 1} \right.} \right\} - $$ generates string where equal no. of $$x$$ and equal no. of $$y's.$$
$$E \to XBy\left| {xy\,abo} \right.$$ generators tips same.
44
Consider the grammar with the following productions.
$$S \to a\,\alpha \,\,b\left| {\,\,b\,\alpha } \right.\,c\,\left| {aB} \right.$$
$$S \to \alpha S\,\left| b \right.$$
$$S \to \alpha \,bb\,\left| {ab} \right.$$
$$S\alpha \to bdb\,\left| b \right.$$
the above grammar is
$$S \to a\,\alpha \,\,b\left| {\,\,b\,\alpha } \right.\,c\,\left| {aB} \right.$$
$$S \to \alpha S\,\left| b \right.$$
$$S \to \alpha \,bb\,\left| {ab} \right.$$
$$S\alpha \to bdb\,\left| b \right.$$
the above grammar is