GATE 1990 Computer Science questions

Recent questions tagged gate1990

16 16 votes
5 answers 5 answers
7.1k
7.1k views
A $32$-bit floating-point number is represented by a $7$-bit signed exponent, and a $24$-bit fractional mantissa. The base of the scale factor is $16,$The range of the ex...
25 25 votes
2 answers 2 answers
8.4k
8.4k views
The condition for overflow in the addition of two $2's$ complement numbers in terms of the carry generated by the two most significant bits is ___________.
17 17 votes
2 answers 2 answers
4.0k
4.0k views
Show that the elements of the lattice $(N, \leq)$, where $N$ is the set of positive intergers and $a \leq b$ if and only if $a$ divides $b$, satisfy the distributive prop...
0 0 votes
0 0 answers
900
900 views
Show, using resolution, that the following well-formed formula is valid for all interpretations:$\left(\forall x \forall y \left(f \left(x, y \right) \Leftarrow \neg y \l...
36 36 votes
3 answers 3 answers
8.7k
8.7k views
Express $T(n)$ in terms of the harmonic number $\displaystyle H_{n}= \sum_{i=1}^{n} \frac{1}{i},\quad n \geq 1$, where $T(n)$ satisfies the recurrence relation,$T(n)=\fra...
1 1 vote
1 1 answer
1.1k
1.1k views
Consider the grammar:$G_{2}$:Para $\rightarrow$ Sentence RP | SentenceRP $\rightarrow$ b Sentence RP | b SentenceSentence $\rightarrow$ Word b Sentence | WordWord $\right...
31 31 votes
2 answers 2 answers
13.8k
13.8k views
Show that grammar $G_1$ is ambiguous using parse trees:$G_{1}: S \rightarrow$ if $S$ then $S$ else $S$ $S \rightarrow$ if $S$ then $S$
3 3 votes
0 0 answers
1.1k
1.1k views
Complete the following production rules which generate the language:$$L= \left\{a^{n} b^{n} c^{n}\mid a, b, c \in \Sigma \right\}$$ where variables $R$ and $Q$ are used t...
29 29 votes
2 answers 2 answers
6.7k
6.7k views
Is the language generated by the grammar $G$ regular? If so, give a regular expression for it, else prove otherwiseG: $S \rightarrow aB$$B \rightarrow bC$$C \rightarro...
1 1 vote
0 0 answers
1.0k
1.0k views
The following algorithm (written in pseudo-pascal) work on an undirected graph $G$program Explore (G) procedure Visit (u) begin if Adj (u) is not empty {comment:Adj (u) i...
16 16 votes
3 3 answers
5.5k
5.5k views
Consider a hash table with chaining scheme for overflow handling:What is the worst-case timing complexity of inserting $n$ elements into such a table?For what type of ins...
16 16 votes
2 answers 2 answers
8.6k
8.6k views
Consider the height-balanced tree $T_{t}$ with values stored at only the leaf nodes, shown in Fig$.4.$(i) Show how to merge to the tree, $T_{1}$ elements from tree $T_{2}...
18 18 votes
3 3 answers
6.0k
6.0k views
Consider the following problem. Given $n$ positive integers $a_{1}, a_{2}\dots a_n,$ it is required to partition them in to two parts $A$ and $B$ such that, $\displaystyl...
1 1 vote
0 0 answers
1.9k
1.9k views
Consider the following instance of the $0 -1$ Knapsack problem:$\max\; 6X_{1} + 11X_{2} + 16X_{3} + 21X_{4} + 26X_{5}$Subject to $4X_{1} + 8X_{2} + 12X_{3} + 16X_{4} + 20...
14 14 votes
4 answers 4 answers
4.3k
4.3k views
The following program computes values of a mathematical function $f(x)$. Determine the form of $f(x)$.main () { int m, n; float x, y, t; scanf ("%f%d", &x, &n); t = 1; y ...
6 6 votes
2 answers 2 answers
3.2k
3.2k views
What does the following program output?program module (input, output); var a:array [1...5] of integer; i, j: integer; procedure unknown (var b: integer, var c: integer); ...
44 44 votes
4 answers 4 answers
12.9k
12.9k views
One giga bytes of data are to be organized as an indexed-sequential file with a uniform blocking factor $8.$ Assuming a block size of $1$ Kilo bytes and a block refrencin...
33 33 votes
4 answers 4 answers
6.0k
6.0k views
Consider the following relational database:employees (eno, ename, address, basic-salary)projects (pno, pname, nos-of-staffs-allotted)working (pno, eno, pjob)The queries r...
23 23 votes
2 answers 2 answers
9.2k
9.2k views
Assuming the current disk cylinder to be $50$ and the sequence for the cylinders to be $1, 36, 49, 65, 53, 12, 3, 20, 55, 16, 65$ and $78$ find the sequence of servicing ...
2 2 votes
0 0 answers
1.2k
1.2k views
Assume that an instruction test-and-set (TS) has been provided in a machine whose function is as follows: 'the left most bit of the one byte operand is checked and accord...
7 7 votes
1 answers 1 answer
4.7k
4.7k views
State the Booth's algorithm for multiplication of two numbers. Draw a block diagram for the implementation of the Booth's algorithm for determining the product of two $8$...
17 17 votes
3 answers 3 answers
5.0k
5.0k views
A single bus CPU consists of four general purpose register, namely, $R0, \ldots, R3, \text{ALU}, \text{MAR}, \text{MDR}, \text{PC}, \text{SP}$ and $\text{IR}$ (Instructio...
36 36 votes
3 3 answers
15.2k
15.2k views
A certain moving arm disk-storage device has the following specifications:Number of tracks per surface $= 404$Track storage capacity $=130030$ bytes.Disk speed $=3600$ rp...
71 71 votes
11 answers 11 answers
34.2k
34.2k views
In a two-level virtual memory, the memory access time for main memory, $t_{M}=10^{-8}$ sec, and the memory access time for the secondary memory, $t_D=10^{-3}$ sec. What m...
57 57 votes
3 answers 3 answers
38.7k
38.7k views
A block-set associative cache memory consists of $128$ blocks divided into four block sets. The main memory consists of $16, 384$ blocks and each block contains $256$ eig...
28 28 votes
8 answers 8 answers
11.2k
11.2k views
For the synchronous counter shown in Fig$.3,$ write the truth table of $Q_{0}, Q_{1}$, and $Q_{2}$ after each pulse, starting from $Q_{0}=Q_{1}=Q_{2}=0$ and determine the...
29 29 votes
7 answers 7 answers
8.4k
8.4k views
Show with the help of a block diagram how the Boolean function :$f=AB+BC+CA$can be realised using only a $4:1$ multiplexer.
29 29 votes
4 answers 4 answers
11.0k
11.0k views
Find the minimum product of sums of the following expression$f=ABC + \overline{A}\;\;\overline{B}\;\;\overline{C}$
20 20 votes
2 2 answers
5.8k
5.8k views
State whether the following statements are TRUE or FALSE with reason:The Link-load-and-go loading scheme required less storage space than the link-and-go loading scheme.
5 5 votes
3 3 answers
3.8k
3.8k views
State whether the following statements are TRUE or FALSE with reason:Transferring data in blocks from the main memory to the cache memory enables an interleaved main memo...