GATE 1999 Computer Science questions and solutions

Recent questions tagged gate1999

40 40 votes
4 answers 4 answers
12.1k
12.1k views
Zero has two representations inSign-magnitude$2's$ complement$1's$ complementNone of the above
62 62 votes
8 answers 8 answers
33.0k
33.0k views
The number of full and half-adders required to add $16$-bit numbers is$8$ half-adders, $8$ full-adders$1$ half-adder, $15$ full-adders$16$ half-adders, $0$ full-adders$4$...
42 42 votes
3 answers 3 answers
17.2k
17.2k views
A grammar that is both left and right recursive for a non-terminal, isAmbiguousUnambiguousInformation is not sufficient to decide whether it is ambiguous or unambiguousNo...
7 7 votes
4 answers 4 answers
12.7k
12.7k views
The number of tokens in the FORTRAN statement DO 10 I = 1.25 is345None of the above
9 9 votes
3 answers 3 answers
8.6k
8.6k views
Consider the following program in a language that has dynamic scooping:var x: real; procedure show: begin print(x);end; procedure small; var x: real; begin x: = 0.125; sh...
118 118 votes
6 answers 6 answers
44.0k
44.0k views
Which of the following actions is/are typically not performed by the operating system when switching context from process $A$ to process $B$?Saving current register value...
56 56 votes
6 answers 6 answers
23.5k
23.5k views
Which of the following is/are advantage(s) of virtual memory?Faster access to memory on an average.Processes can be given protected address spaces.Linker can assign addre...
47 47 votes
4 answers 4 answers
19.8k
19.8k views
A multi-user, multi-processing operating system cannot be implemented on hardware that does not supportAddress translationDMA for disk transferAt least two modes of CPU e...
48 48 votes
5 answers 5 answers
24.8k
24.8k views
Which of the following sets of component(s) is/are sufficient to implement any arbitrary Boolean function?XOR gates, NOT gates$2$ to $1$ multiplexersAND gates, XOR gatesT...
42 42 votes
4 answers 4 answers
13.4k
13.4k views
Consider the circuit shown below. In a certain steady state, the line $Y$ is at $'1'$. What are the possible values of $A, B$ and $C$ in this state?$A=0, B=0, C=1$$A=0, B...
100 100 votes
14 answers 14 answers
48.6k
48.6k views
Consider the schema $R=(S,T, U, V)$ and the dependencies $S \rightarrow T, T \rightarrow U, U \rightarrow V$ and $V \rightarrow S$. Let $R = (R1\text{ and } R2)$ be a dec...
81 81 votes
7 7 answers
23.3k
23.3k views
For the schedule given below, which of the following is correct:$$\begin{array}{ll} \text{1} & \text{Read A} & \text{} \\ \text{2} & \text{} & \text{Read B} \\ \text{3...
49 49 votes
6 answers 6 answers
27.5k
27.5k views
Given the programming constructsassignmentfor loops where the loop parameter cannot be changed within the loopif-then-elseforward go toarbitrary go tonon-recursive proced...
37 37 votes
3 answers 3 answers
16.5k
16.5k views
If $L1$ is context free language and $L2$ is a regular language which of the following is/are false?$L1-L2$ is not context free$L1 \cap L2$ is context free$\sim L1$ is co...
18 18 votes
4 answers 4 answers
9.4k
9.4k views
Let $L$ be a set with a relation $R$ which is transitive, anti-symmetric and reflexive and for any two elements $a, b \in L$, let the least upper bound $lub (a, b)$ and ...
55 55 votes
8 answers 8 answers
22.3k
22.3k views
Two girls have picked $10$ roses, $15$ sunflowers and $15$ daffodils. What is the number of ways they can divide the flowers among themselves?$1638$$2100$$2640$None of th...
24 24 votes
3 answers 3 answers
7.3k
7.3k views
Consider two events $E_1$ and $E_2$ such that probability of $E_1$, $P_r[E_1]=\frac{1}{2}$, probability of $E_2$, $P_r[E_{2}]=\frac{1}{3}$, and probability of $E_1$, and ...
49 49 votes
4 answers 4 answers
22.8k
22.8k views
Which of the following is correct?B-trees are for storing data on disk and B$^+$ trees are for main memory.Range queries are faster on B$^+$ trees.B-trees are for primary...
41 41 votes
4 answers 4 answers
8.4k
8.4k views
Let $R = (A, B, C, D, E, F)$ be a relation scheme with the following dependencies $C \rightarrow F, E \rightarrow A, EC \rightarrow D, A \rightarrow B $. Which one of the...
6 6 votes
2 answers 2 answers
4.0k
4.0k views
The Newton-Raphson method is to be used to find the root of the equation $f(x)=0$ where $x_o$ is the initial approximation and $f’$ is the derivative of $f$. The method ...
39 39 votes
4 answers 4 answers
13.3k
13.3k views
The main memory of a computer has $2\;\text{cm}$ blocks while the cache has $2\;\text{c}$ blocks. If the cache uses the set associative mapping scheme with $2$ blocks per...
35 35 votes
3 answers 3 answers
18.0k
18.0k views
The maximum gate delay for any output to appear in an array multiplier for multiplying two $n$ bit numbers is$O(n^2)$$O(n)$$O(\log n)$$O(1)$
36 36 votes
5 answers 5 answers
18.9k
18.9k views
Booth's coding in $8$ bits for the decimal number $-57$ is:$0-100+1000$$0-100+100-1$$0-1+100-10+1$$00-10+100-1$
39 39 votes
1 answers 1 answer
8.8k
8.8k views
The relational algebra expression equivalent to the following tuple calculus expression:$\left\{t \mid t \in r \land \left(t[A] = 10 \land t[B]=20\right)\right\}$ is$\sig...
62 62 votes
5 answers 5 answers
26.9k
26.9k views
Consider the join of a relation $R$ with a relation $S$. If $R$ has $m$ tuples and $S$ has $n$ tuples then the maximum and minimum sizes of the join respectively are$m+n$...
26 26 votes
6 answers 6 answers
28.5k
28.5k views
Which of the following is the most powerful parsing method?LL (1)Canonical LRSLRLALR
41 41 votes
5 answers 5 answers
16.7k
16.7k views
If $n$ is a power of $2$, then the minimum number of multiplications needed to compute $a^n$ is$\log_2 n$$\sqrt n$$n-1$$n$
47 47 votes
5 answers 5 answers
14.2k
14.2k views
The number of articulation points of the following graph is$0$$1$$2$$3$
67 67 votes
3 answers 3 answers
34.1k
34.1k views
If one uses straight two-way merge sort algorithm to sort the following elements in ascending order: $20, \ 47, \ 15, \ 8, \ 9, \ 4, \ 40, \ 30, \ 12, \ 17$then the o...
72 72 votes
9 answers 9 answers
31.5k
31.5k views
Suppose we want to arrange the $n$ numbers stored in any array such that all negative values occur before all positive ones. Minimum number of exchanges required in the w...