GATE 1989 Computer Science Questions

Recent questions tagged gate1989

6.3k
views
5 answers
31 votes
Symbolize the expression "Every mother loves her children" in predicate logic.
3.1k
views
4 answers
25 votes
Find the number of single valued functions from set $A$ to another set $B,$ given that the cardinalities of the sets $A$ and $B$ are $m$ and $n$ respectively.
4.4k
views
3 answers
19 votes
Find a solution to the following recurrence equation:$T(n)=\sqrt{n}+T\left(\frac{n}{2}\right)$T(1)=1$
2.8k
views
2 answers
8 votes
A language uses an alphabet of six letters, $\left\{a, b, c, d, e, f\right\}$. The relative frequency of use of each letter of the alphabet ... for the language which would minimize the average length of the encoded words of the language.
555
views
0 answers
0 votes
Consider a database with the following three relations:CREDITS (STUDENT; COURSE)OFFERS (TEACHER; COURSE)BELONGS (TEACHER; DEPARTMENT)Given below is a code in query language QUEL. ... LIST3 retrieve(E1.I) where e1.I=e2.I and where e1.I=e3.I
8.6k
views
4 answers
33 votes
The below figure shows a $B^+$ tree where only key values are indicated in the records. Each block can hold upto three records. A record with a key value $34$ is inserted into the $B^+$ tree. Obtain the modified $B^+$ tree after insertion.
2.7k
views
1 answers
6 votes
Consider the following precedence graph $(\text{Fig}.6)$ of processes where a node denotes a process and a directed edge from node $P_{i}$ to node ... constructs. The actual computation done by a process may be indicated by a comment line.
3.4k
views
4 answers
14 votes
A system of four concurrent processes, $P, Q, R$ and $S$, use shared resources $A, B$ and $C$ ... system of concurrent processes using shared resources if preemption of granted resources is not allowed?
770
views
1 answers
1 votes
Consider the following grammar for variable declarations:<vardecl> $\rightarrow$ <vardecl><idlist> : <type>;<vardecl> $\rightarrow \in$ ... procedures operating on the symbol table; you need not elaborate upon these procedures.
1.4k
views
1 answers
3 votes
Will recursion work correctly in a language with static allocation of all variables? Explain.
5.3k
views
1 answers
15 votes
An input files has $10$ ... $2$-way- MERGESORT showing all major intermediate steps. Use square brackets to demarcate subfiles.
1.6k
views
1 answers
5 votes
Indicate the result of the following program if the language uses (i) static scope rules and (ii) dynamic scope rules.var x, y:integer; procedure A (var z:integer); var x:integer; ... begin x:=x+1 end; begin x:=5; A(y); write (y) ...end.
1.3k
views
2 answers
5 votes
What is the output produced by the following program, when the input is "HTGATE"Function what (s:string): string; var n:integer; begin n = s.length if n <= 1 then what : ... $s_{1}$ with $s_{2}$ such that $s_{1}$ precedes $s_{2}$.
537
views
0 answers
0 votes
An 8085-based microcomputer consisting of 16 kbytes of ROM, 16kbytes of RAM and four 8-bit I/O ports is to be designed using RAM and ROM chips each of 2 ... to occupy lower order I/O address space.Give memory map and I/O address map.
479
views
0 answers
1 votes
In a certain computer system, there is special instruction implemented to call subroutines. The instruction isJSR Reg.Sub Microsequence: Temp ← Sub SP ← (SP)+ ... control flow diagram and the contents of the stack before and after the call.
2.1k
views
1 answers
4 votes
A certain computer system was designed with cache memory of size $1$ Kbytes and main memory size of $256$ Kbytes. The cache implementation was fully ... a change in the program size of model to improve the hit ratio significantly.
640
views
0 answers
6 votes
It is required to implement a stack using bidirectional shift registers providing stack underflow and overflow detection capability.How many shift registers are ... of the implementation, clearly indicating all the data and control lines.
3.7k
views
3 answers
27 votes
Find values of Boolean variables $A, B, C$ which satisfy the following equations:A+ B = 1AC = BCA + C = 1AB = 0
7.5k
views
1 answers
12 votes
For secondary key processing which of the following file organizations is preferred? Give a one line justification:Indexed sequential file organization.Two-way linked list.Inverted file organization.Sequential file organization.
552
views
0 answers
0 votes
Provide short answers to the following questions:Consider the following sequence of UNIX commands:grep main a.c b.c c.c > grepout & wc < grepout & rm grepout &Why is this not equivalent to the following?grep main a.c.b.c c.c | wc
5.4k
views
2 answers
22 votes
Disk requests come to disk driver for cylinders $10, 22, 20, 2, 40, 6$ and $38$, in that order at a time when the disk drive is reading ... seek time if the disk arm scheduling algorithm is.First come first served.Closest cylinder next.
828
views
1 answers
3 votes
Express the following list in terms of a linked list structure suitable for internal representation.$(((ab)c)d((e)))$
2.6k
views
1 answers
10 votes
A switching function is said to be neutral if the number of input combinations for which its value is $1$ is equal to the number of input combinations for which ... number of neutral switching functions of $n$ variables (for a given $n$).
3.1k
views
2 answers
13 votes
Explain the behaviour of the following logic circuit with level input $A$ and output $B$.
1.8k
views
1 answers
6 votes
$P_{n} (t)$ is the probability of $n$ events occurring during a time interval $t$. How will you express $P_{0} (t + h)$ ... $P_{t} (t)$is the probability density function).
3.0k
views
4 answers
12 votes
In the graph shown above, the depth-first spanning tree edges are marked with a $’ T’$. Identify the forward, backward, and cross edges.
764
views
1 answers
1 votes
Consider the definition of macro $B,$ nested within the definition of a macro $A.$ Can a call to macro $B$ also appear within macro $A?$ If not, why not? If yes, explain if there are any restrictions.
1.9k
views
2 answers
5 votes
Is the following code template for the if-then-else statement correct? if not, correct it.$\text{if} \text{ expression then statement } 1$ ... E > O$ to $L1$Code for statement $1$L1$: Code for statement $2$
1.7k
views
3 answers
11 votes
Show that {NOR} is a functionally complete set of Boolean operations.
2.0k
views
1 answers
4 votes
Compute the postfix equivalent of the following infix arithmetic expression$a + b \ast c + d * e \uparrow f$where $\uparrow$ represents exponentiation. Assume normal operator precedences.