Recent questions tagged gate1992

16 16 votes
2 answers 2 answers
4.8k
4.8k views
Consider the function $F(n)$ for which the pseudocode is given below :Function F(n) begin F1 ← 1 if(n=1) then F ← 3 else For i = 1 to n do begin C ← 0 For j = 1 to n – 1 ...
12 12 votes
1 1 answer
3.5k
3.5k views
Show the activation records and the display structure just after the procedures called at lines marked $x$ and $y$ have started their execution. Be sure to indicate which...
29 29 votes
4 answers 4 answers
4.6k
4.6k views
Write $3$ address intermediate code (quadruples) for the following boolean expression in the sequence as it would be generated by a compiler. Partial evaluation of boolea...
53 53 votes
6 answers 6 answers
19.3k
19.3k views
Let the page reference and the working set window be $c\ c\ d\ b\ c\ e\ c\ e\ a\ d\ $ and $4$, respectively. The initial working set at time $t=0$ contains the pages $\{a...
39 39 votes
5 answers 5 answers
8.5k
8.5k views
Suppose we have a database consisting of the following three relations:$$\begin{array}{|c|c|} \hline \text {FREQUENTS} & \text {(CUSTOMER, HOTEL)} \\\hline \text {SERVES}...
35 35 votes
3 answers 3 answers
8.1k
8.1k views
Consider the set of integers $\{1,2,3,4,6,8,12,24\}$ together with the two binary operations LCM (lowest common multiple) and GCD (greatest common divisor). Which of the ...
12 12 votes
3 answers 3 answers
6.6k
6.6k views
Let $S$ be the set of all integers and let $n 1$ be a fixed integer. Define for $a,b \in S, a R b$ iff $a-b$ is a multiple of $n$. Show that $R$ is an equivalence relat...
4 4 votes
0 0 answers
6.5k
6.5k views
Consider the SLR(1) and LALR(1) parsing tables for a context free grammar. Which of the following statements is/are true?a] The goto part of both tables may be different....
2 2 votes
0 0 answers
1.3k
1.3k views
Three devices $A, B$ and $C$ are connected to the bus of a computer, input/output transfers for all three devices use interrupt control. Three interrupt request lines INT...
25 25 votes
4 answers 4 answers
7.0k
7.0k views
Design a $3$-bit counter using D-flip flops such that not more than one flip-flop changes state between any two consecutive states.
31 31 votes
5 answers 5 answers
11.9k
11.9k views
A priority encoder accepts three input signals $\text{(A, B and C)}$ and produces a two-bit output $(X_1, X_0 )$ corresponding to the highest priority active input signal...
39 39 votes
3 answers 3 answers
14.7k
14.7k views
Which of the following three statements are true? Prove your answer.The union of two recursive languages is recursive.The language $\{O^n \mid n\text{ is a prime} \}$ is ...
27 27 votes
3 answers 3 answers
7.1k
7.1k views
Use Modus ponens $(A, A → B |= B)$ or resolution to show that the following set is inconsistent:$Q(x) \rightarrow P (x) \vee \sim R (a)$$R (a) \vee \sim Q(a)$$Q(a)$$\sim ...
54 54 votes
4 answers 4 answers
11.9k
11.9k views
If $G$ is a group of even order, then show that there exists an element $a≠e$, the identity in $G$, such that $a^2 = e$.
6 6 votes
1 1 answer
1.6k
1.6k views
How is redundancy reduced in the following models?HierarchicalNetworkRelational
12 12 votes
1 answers 1 answer
5.7k
5.7k views
Draw the precedence graph for the concurrent program given belowS1 parbegin begin S2:S4 end; begin S3; parbegin S5; begin S6:S8 end parend end; S7 parend; S9
19 19 votes
2 answers 2 answers
5.9k
5.9k views
Write syntax directed definitions (semantic rules) for the following grammar to add the type of each identifier to its entry in the symbol table during semantic analysis....
2 2 votes
1 1 answer
1.9k
1.9k views
What type of parameter passing mechanism (call-by-value, call-by-reference, call-by-name, or-by-value result) is the following sequence of actions trying to implement for...
32 32 votes
3 3 answers
8.8k
8.8k views
Suggest a data structure for representing a subset $S$ of integers from $1$ to $n$. Following operations on the set $S$ are to be performed in constant time (independent ...
24 24 votes
6 6 answers
10.6k
10.6k views
Let $T$ be a Depth First Tree of a undirected graph $G$. An array $P$ indexed by the vertices of $G$ is given. $P[V]$ is the parent of vertex $V$, in $T$. Parent of the r...
21 21 votes
4 answers 4 answers
6.9k
6.9k views
Consider the function $F(n)$ for which the pseudocode is given below :Function F(n) begin F1 ← 1 if(n=1) then F ← 3 else For i = 1 to n do begin C ← 0 For j = 1 to n – 1 ...
4 4 votes
0 0 answers
1.7k
1.7k views
A microprocessor is capable of addressing 1 megabyte of memory with a 20-bit address bus. The system to be designed requires 256 K bytes of RAM, 256 K bytes of EPROM, 16 ...
76 76 votes
9 answers 9 answers
40.9k
40.9k views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...
25 25 votes
3 answers 3 answers
5.3k
5.3k views
Consider addition in two's complement arithmetic. A carry from the most significant bit does not always correspond to an overflow. Explain what is the condition for overf...
9 9 votes
2 answers 2 answers
4.7k
4.7k views
Start and stop bits do not contain any "information" but are used in serial communication forError detectionError correctionSynchronizationSlowing down the communications...
32 32 votes
3 answers 3 answers
7.9k
7.9k views
Assume that the last element of the set is used as partition element in Quicksort. If $n$ distinct elements from the set $\left[1\dots n\right]$ are to be sorted, give an...
46 46 votes
6 answers 6 answers
12.0k
12.0k views
How many edges can there be in a forest with $p$ components having $n$ vertices in all?
23 23 votes
3 answers 3 answers
8.8k
8.8k views
Mention the pass number for each of the following activities that occur in a two pass assembler:object code generationliterals added to literal tablelisting printedaddres...
11 11 votes
1 answers 1 answer
3.8k
3.8k views
Write short answers to the following:Which of the following macros can put a macro assembler into an infinite loop?.MACRO M1,X .IF EQ,X M1 X+1 .ENDC .IF NE,X .WORD X .END...
35 35 votes
3 answers 3 answers
9.4k
9.4k views
In which of the cases stated below is the following statement true?"For every non-deterministic machine $M_{1}$ there exists an equivalent deterministic machine $M_{2}$ r...