GATE 1993 Computer Science Questions and Solutions

Recent questions tagged gate1993

20 20 votes
1 answers 1 answer
4.3k
4.3k views
The following relations are used to store data about students, courses, enrollment of students in courses and teachers of courses. Attributes for primary key in each rela...
45 45 votes
10 answers 10 answers
21.4k
21.4k views
For the initial state of $000$, the function performed by the arrangement of the $\text{J-K}$ flip-flops in figure is:Shift Register$\text{Mod- 3}$ Counter$\text{Mod- 6}$...
33 33 votes
2 answers 2 answers
11.0k
11.0k views
If the state machine described in figure should have a stable state, the restriction on the inputs is given by$a.b=1$$a+b=1$$\bar{a} + \bar{b} =0$$\overline{a.b}=1$$\over...
45 45 votes
6 answers 6 answers
8.5k
8.5k views
Let $\left(\{ p,q \},*\right)$ be a semigroup where $p*p=q$. Show that:$p*q=q*p$ and$q*q=q$
47 47 votes
4 answers 4 answers
20.1k
20.1k views
Draw the state transition of a deterministic finite state automaton which accepts all strings from the alphabet $\{a,b\}$, such that no string has $3$ consecutive occurre...
13 13 votes
3 3 answers
4.8k
4.8k views
A stack is used to pass parameters to procedures in a procedure call.If a procedure $P$ has two parameters as described in procedure definition:procedure P (var x :intege...
8 8 votes
3 3 answers
2.7k
2.7k views
A simple Pascal like language has only three statements.assignment statement e.g. x:=expressionloop construct e.g. for i:=expression to expression do statementsequencing ...
29 29 votes
7 7 answers
7.4k
7.4k views
The following relations are used to store data about students, courses, enrollment of students in courses and teachers of courses. Attributes for primary key in each rela...
29 29 votes
6 answers 6 answers
9.7k
9.7k views
Write a concurrent program using $\text{parbegin-parend}$ and semaphores to represent the precedence constraints of the statements $S_1$ to $S_6$, as shown in figure belo...
20 20 votes
2 answers 2 answers
10.0k
10.0k views
The following page addresses, in the given sequence, were generated by a program:$\text{1 2 3 4 1 3 5 2 1 5 4 3 2 3}$This program is run on a demand paged virtual memory ...
25 25 votes
1 answers 1 answer
5.4k
5.4k views
A control algorithm is implemented by the NAND – gate circuitry given in figure below, where $A$ and $B$ are state variable implemented by $D$ flip-flops, and $P$ is cont...
34 34 votes
3 answers 3 answers
6.5k
6.5k views
Show that proposition $C$ is a logical consequence of the formula$$A\wedge \left(A \to \left(B \vee C\right)\right) \wedge \left( B \to \neg A\right)$$using truth tables.
58 58 votes
8 answers 8 answers
16.5k
16.5k views
Out of a group of $21$ persons, $9$ eat vegetables, $10$ eat fish and $7$ eat eggs. $5$ persons eat all three. How many persons eat at least two out of the three dishes?
23 23 votes
3 answers 3 answers
5.3k
5.3k views
Prove by the principal of mathematical induction that for any binary tree, in which every non-leaf node has $2$-descendants, the number of leaves in the tree is one more ...
18 18 votes
1 answers 1 answer
5.1k
5.1k views
Consider the recursive algorithm given below:procedure bubblesort (n); var i,j: index; temp : item; begin for i:=1 to n-1 do if A[i] A[i+1] then begin temp := A[i]; A[i]...
54 54 votes
3 answers 3 answers
12.7k
12.7k views
An $\text{ISAM}$ (indexed sequential) file consists of records of size $64$ bytes each, including key field of size $14$ bytes. An address of a disk block takes $2$ bytes...
20 20 votes
6 answers 6 answers
6.4k
6.4k views
Consider a singly linked list having $n$ nodes. The data items $d_1, d_2, \dots d_n$ are stored in these $n$ nodes. Let $X$ be a pointer to the $j^{\text{th}}$ node $(1 \...
33 33 votes
3 answers 3 answers
9.5k
9.5k views
The following Pascal program segments finds the largest number in a two-dimensional integer array $A[0\dots n-1, 0\dots n-1]$ using a single loop. Fill up the boxes to co...
67 67 votes
8 answers 8 answers
22.0k
22.0k views
In the three-level memory hierarchy shown in the following table, $p_i$ denotes the probability that an access request will refer to $M_i$.$$\begin{array}{|c|c|c|c|} \hli...
50 50 votes
3 answers 3 answers
13.5k
13.5k views
The instruction format of a CPU is:$\text{Mode}$ and $\text{RegR}$ together specify the operand. $\text{RegR}$ specifies a CPU register and $\text{Mode}$ specifies an add...
21 21 votes
2 answers 2 answers
5.2k
5.2k views
Assume that only half adders are available in your laboratory. Show that any binary function can be implemented using half adders only.
53 53 votes
5 answers 5 answers
19.7k
19.7k views
$\displaystyle \sum_{1\leq k\leq n} O(n)$, where $O(n)$ stands for order $n$ is:$O(n)$$O(n^2)$$O(n^3)$$O(3n^2)$$O(1.5n^2)$
37 37 votes
3 answers 3 answers
7.4k
7.4k views
Let $A$ and $B$ be sets with cardinalities $m$ and $n$ respectively. The number of one-one mappings from $A$ to $B$, when $m < n$, is$m^n$$^nP_m$$^mC_n$$^nC_m$$^mP_n$
28 28 votes
4 answers 4 answers
13.3k
13.3k views
The less-than relation, $<,$ on real number isa partial ordering since it is asymmetric and reflexivea partial ordering since it is antisymmetric and reflexivenot a parti...
34 34 votes
3 answers 3 answers
10.5k
10.5k views
Let A be a finite set of size n. The number of elements in the power set of $A\times A$ is:$2^{2^n}$$2^{n^2}$$\left(2^n\right)^2$$\left(2^2\right)^n$None of the above
45 45 votes
5 answers 5 answers
12.8k
12.8k views
Let $S$ be an infinite set and $S_1 \dots , S_n$ be sets such that $S_1 \cup S_2 \cup \dots \cup S_n = S$. Thenat least one of the sets $S_i$ is a finite setnot more than...
35 35 votes
4 answers 4 answers
12.3k
12.3k views
The proposition $p \wedge (\sim p \vee q)$ is:a tautologylogically equivalent to $p \wedge q$logically equivalent to $p \vee q$a contradictionnone of the above
33 33 votes
4 answers 4 answers
18.2k
18.2k views
Consider a simple connected graph $G$ with $n$ vertices and $n$ edges $(n 2)$. Then, which of the following statements are true?$G$ has no cyclesThe graph obtained by re...
42 42 votes
4 answers 4 answers
18.7k
18.7k views
Assume that the following jobs are to be executed on a single processor system$$\begin{array}{|c|c|} \hline \textbf{Job Id} & \textbf{CPU Burst Time} \\\hline \text{p} ...