Recent questions tagged gatecse2025-set2

22 22 votes
10 10 answers
13.2k
13.2k views
Consider two grammars $G_{1}$ and $G_{2}$ with the production rules given below: $G_{1} : S \rightarrow$ $if$ $E$ $then$ $S$ $|$ $if$ $E$ $then$ $S$ $else$ $S$ $|$ $a$ ...
24 24 votes
7 7 answers
9.6k
9.6k views
Let $\Sigma=\{a, b, c\}$. For $x \in \Sigma^{*}$, and $\alpha \in \Sigma$, let $\#_{\alpha}(x)$ denote the number of occurrences of $\alpha$ in $x$. Which one or more of...
25 25 votes
5 5 answers
10.4k
10.4k views
Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable?$$\begin{array}{|ll|} \hline \textbf{Transa...
31 31 votes
5 5 answers
11.9k
11.9k views
Consider the following relational schema: Students ($\underline{\text{rollno: integer}},$ name: string, age: integer, cgpa: real) Courses ($\underline{\text{courseno: int...
25 25 votes
7 7 answers
12.3k
12.3k views
Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is $1$ nanosecond (ns) and the "hit rate" for L1 c...
18 18 votes
5 5 answers
8.7k
8.7k views
A $5$-stage instruction pipeline has stage delays of $180,250,150,170$, and $250$, respectively, in nanoseconds. The delay of an inter-stage latch is $10$ nanoseconds. As...
29 29 votes
6 6 answers
13.7k
13.7k views
In a $\mathrm{B}^{+}$- tree where each node can hold at most four key values, a root to leaf path consists of the following nodes:\[\mathrm{A}=(49,77,83,-), \mathrm{B}=(7...
49 49 votes
12 12 answers
19.8k
19.8k views
A computer system supports a logical address space of $2^{32}$ bytes. It uses two-level hierarchical paging with a page size of $4096$ bytes. A logical address is divided...
14 14 votes
5 5 answers
10.2k
10.2k views
Consider the following algorithm someAlgo that takes an undirected graph $G$ as input. ...
43 43 votes
6 6 answers
17.1k
17.1k views
Let $\Sigma=\{1,2,3,4\}$. For $x \in \Sigma^{*}$, let $\operatorname{prod}(x)$ be the product of symbols in $x$ modulo 7. We take $\operatorname{prod}(\epsilon)=1$, where...
24 24 votes
4 4 answers
11.8k
11.8k views
An application executes $6.4 \times 10^{8}$ number of instructions in $6.3$ seconds. There are four types of instructions, the details of which are given in the table. Th...
31 31 votes
6 6 answers
12.7k
12.7k views
Consider the following C program:#include<stdio.h int main(){ int a; int arr[5] = {30,50,10}; int *ptr; ptr = &arr[0] + 1; a = *ptr; (*ptr)++; ptr++; printf("%d", a + (*p...
24 24 votes
4 4 answers
8.5k
8.5k views
Consider the following C program:#include <stdio.h int g(int n) { return (n+10); } int f(int n) { return g(n*2); } int main() { int sum, n; sum=0; for (n=1; n<3; n++) sum...
22 22 votes
3 3 answers
9.4k
9.4k views
A quadratic polynomial $(x-\alpha)(x-\beta)$ over complex numbers is said to be square invariant if $(x-\alpha)(x-\beta)=\left(x-\alpha^{2}\right)\left(x-\beta^{2}\right)...
34 34 votes
4 4 answers
11.1k
11.1k views
The unit interval $(0,1)$ is divided at a point chosen uniformly distributed over $(0,1)$ in $\mathbb{R}$ into two disjoint subintervals.The expected length of the subint...
34 34 votes
8 answers 8 answers
12.3k
12.3k views
​​​​If $A=\left(\begin{array}{cc}1 & 2 \\ 2 & -1\end{array}\right)$, then which ONE of the following is $A^{8}$ ?$\left(\begin{array}{cc}25 & 0 \\ 0 & 25\end{array}\right...
20 20 votes
4 4 answers
10.6k
10.6k views
​​​​​The value of $x$ such that $x>1$, satisfying the equation $\int_1^x t \ln t \: dt = \frac{1}{4}$ is$\sqrt{e}$$e$$e^2$$e-1$
22 22 votes
7 7 answers
11.8k
11.8k views
​​​​Consider a binary tree $T$ in which every node has either zero or two children. Let $n>0$ be the number of nodes in $T$.Which ONE of the following is the number of no...
29 29 votes
5 answers 5 answers
12.1k
12.1k views
Let $L$, $M$, and $N$ be non-singular matrices of order $3$ satisfying the equations $L^2 = L^{-1}$, $M=L^8$ and $N=L^2$. Which ONE of the following is the value of the d...
53 53 votes
8 8 answers
15.6k
15.6k views
​​​Let $P(x)$ be an arbitrary predicate over the domain of natural numbers. Which ONE of the following statements is TRUE?$\big (P(0) \wedge \big( \forall x [P(x) \Righta...
23 23 votes
5 5 answers
7.0k
7.0k views
​​​​​Consider the following statements:Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.A single...
14 14 votes
4 4 answers
6.9k
6.9k views
Consider the routing protocols given in List I and the names given in List II:$$\begin{array}{|ll|ll|}\hline & \textbf{List I} & & \textbf{List II} \\\hline \text{(i)} ...
19 19 votes
3 3 answers
8.8k
8.8k views
​​​A machine receives an $IPv4$ datagram. The protocol field of the $IPv4$ header has the protocol number of a protocol $X$.Which ONE of the following is NOT a possible c...
34 34 votes
7 7 answers
14.0k
14.0k views
​​​​​Consider the following C program:#include <stdio.h void stringcopy (char *, char *); int main() { char a[30] = "@#Hello World!"; stringcopy(a, a+2); printf("%s\n",a)...
19 19 votes
7 7 answers
9.6k
9.6k views
​​​​Consider an unordered list of $N$ distinct integers.What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest ...
20 20 votes
4 4 answers
7.8k
7.8k views
​​​​Consider the following statements about the use of backpatching in a compiler for intermediate code generation:Backpatching can be used to generate code for Boolean e...
23 23 votes
8 8 answers
9.2k
9.2k views
​​Given the following syntax directed translation rules:Rule 1: $R \rightarrow A B\{B . i=R . i-1 ; A . i=B . i ; R . i=A . i+1 ;\}$Rule 2: $P \rightarrow C D\{P . i=C . ...
27 27 votes
3 3 answers
12.0k
12.0k views
​​​​​Consider a network that uses Ethernet and $IPv4$. Assume that $IPv4$ headers do not use any options field. Each Ethernet frame can carry a maximum of $1500$ bytes in...
14 14 votes
4 4 answers
6.6k
6.6k views
​​​​Which ONE of the following languages is accepted by a deteministic pushdown automaton?Any regular languageAny context-free languageAny language accepted by a non-dete...
16 16 votes
4 4 answers
7.1k
7.1k views
​​​​Let $G_{1}, G_{2}$ be Context Free Grammars (CFGs) and $R$ be a regular expression. For a grammar $G$, let $L(G)$ denote the language generated by $G$.Which ONE among...