Recent questions tagged gatecse2025-set1

19 19 votes
4 4 answers
9.8k
9.8k views
Consider the given function $f(x)$.$$f(x)=\left\{\begin{array}{ll} a x+b & \text { for } x<1 \\x^{3}+x^{2}+1 & \text { for } x \geq 1\end{array}\right.$$If the function i...
21 21 votes
4 4 answers
9.9k
9.9k views
A box contains $5$ coins: $4$ regular coins and $1$ fake coin. When a regular coin is tossed, the probability $P($ head $)=0.5$ and for a fake coin, $P($ head $)=1$. You ...
22 22 votes
7 7 answers
13.0k
13.0k views
The pseudocode of a function $\text{fun ()}$ is given below: fun(int A[0,....,n-1]) { for i=0 to n-2 for j=0 to n-i-2 if (A[j]>A[j+1]) then swap A[j] and A[j+1] }Let $A[0...
20 20 votes
5 5 answers
6.9k
6.9k views
 #include <stdio.h void foo(int *p, int x) { *p=x; } int main(){ int *z; int a = 20, b = 25; z = &a; foo(z,b); printf("%d",a); return 0; }The output of the given $\text{C...
13 13 votes
6 6 answers
8.0k
8.0k views
The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.Suppose a Min-Heap $\text{T}$ stores $32$ keys. Th...
20 20 votes
4 4 answers
7.8k
7.8k views
Consider a memory system with $1 \mathrm{M}$ bytes of main memory and $16 \mathrm{~K}$ bytes of cache memory. Assume that the processor generates $20$-bit memory address,...
13 13 votes
3 3 answers
7.6k
7.6k views
A processor has $64$ general-purpose registers and $50$ distinct instruction types. An instruction is encoded in $32$-bits. What is the maximum number of bits that can be...
34 34 votes
8 8 answers
14.2k
14.2k views
A computer has two processors, $M_{1}$ and $M_{2}$. Four processes $P_{1}, P_{2}, P_{3}, P_{4}$ with CPU bursts of $20,16,25$, and $10$ milliseconds, respectively, arrive...
18 18 votes
4 4 answers
4.4k
4.4k views
Consider two relations describing teams and players in a sports league:teams(tid, tname): tid, tname are team-id and team-name, respectivelyplayers(pid,pname,tid): pid, p...
17 17 votes
6 6 answers
9.7k
9.7k views
A packet with the destination $\text{IP}$ address $145.36 .109 .70$ arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?$$\b...
21 21 votes
9 9 answers
10.4k
10.4k views
Let $A$ be a $2 \times 2$ matrix as given.$$ A=\left[\begin{array}{rr} 1 & 1 \\ 1 & -1 \end{array}\right]$$What are the eigenvalues of the matrix $A^{13}$ ?$1,-1$$2 \sqrt...
17 17 votes
4 4 answers
6.3k
6.3k views
Consider the following four variable Boolean function in sum-of-product form$$ F\left(b_{3}, b_{2}, b_{1}, b_{0}\right)=\sum(0,2,4,8,10,11,12)$$where the value of the fun...
30 30 votes
8 8 answers
11.5k
11.5k views
Let $G(V, E)$ be an undirected and unweighted graph with $100$ vertices. Let $d(u, v)$ denote the number of edges in a shortest path between vertices $u$ and $v$ in $V$. ...
35 35 votes
9 9 answers
14.5k
14.5k views
Consider the following two languages over the alphabet $\{a, b\}$:$$\begin{array}{l} L_{1}=\left\{\alpha \beta \alpha \mid \alpha \in\{a, b\}^{+} \text {AND } \beta \in\{...
18 18 votes
3 3 answers
7.0k
7.0k views
Consider the following two languages over the alphabet $\{a, b, c\}$, where $m$ and $n$ are natural numbers.$$\begin{aligned} L_{1} & =\left\{a^{m} b^{m} c^{m+n} \mid m, ...
21 21 votes
4 4 answers
6.7k
6.7k views
Which of the following statement(s) is/are TRUE while computing $\operatorname{First}$ and $\operatorname{Follow}$ during top down parsing by a compiler?For a production ...
17 17 votes
3 3 answers
6.8k
6.8k views
Consider a relational schema team $\text{(name,city,owner)}$, with functional dependencies $\{\text{name} \rightarrow \text{city}, \text{name} \rightarrow \text{owner} \}...
34 34 votes
6 6 answers
8.8k
8.8k views
Which of the following predicate logic formulae/formula is/are CORRECT representation(s) of the statement: "Everyone has exactly one mother"?The meanings of the predicate...
19 19 votes
9 9 answers
7.3k
7.3k views
$A=\{0,1,2,3, \ldots\}$ is the set of non-negative integers. Let $F$ be the set of functions from $A$ to itself. For any two functions, $f_{1}, f_{2} \in \mathrm{~F}$, we...
12 12 votes
8 8 answers
8.3k
8.3k views
Consider the following deterministic finite automaton (DFA) defined over the alphabet, $\Sigma=\{a, b\}$. Identify which of the following language(s) is/are accepted by t...
38 38 votes
7 7 answers
10.6k
10.6k views
A disk of size $512 \text{ M}$ bytes is divided into blocks of $64 \text{ K}$ bytes. A file is stored in the disk using linked allocation. In linked allocation, each data...
17 17 votes
2 answers 2 answers
7.2k
7.2k views
Refer to the given $3$-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer)1001: i = 1 1002: ...
32 32 votes
8 8 answers
18.8k
18.8k views
A computer has a memory hierarchy consisting of two-level cache $\text{(L1}$ and $\text{L2)}$ and a main memory. If the processor needs to access data from memory, it fir...
18 18 votes
4 4 answers
8.0k
8.0k views
In optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replacem...
17 17 votes
5 5 answers
7.6k
7.6k views
Consider the following database tables of a sports league.player (pid, pname, age) team(tid, tname, city, cid) coach (cid, cname) members (pid,tid)An instance of the tabl...
7 7 votes
6 6 answers
7.0k
7.0k views
Suppose a $5$-bit message is transmitted from a source to a destination through a noisy channel. The probability that a bit of the message gets flipped during transmissio...
17 17 votes
5 5 answers
12.8k
12.8k views
Suppose a message of size $15000$ bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a define...
14 14 votes
1 1 answer
6.6k
6.6k views
Consider a probability distribution given by the density function $P(x)$.$$P(x)=\left\{\begin{aligned}C x^{2}, & \text { for } 1 \leq x \leq 4 \\0, & \text { for } x\lt1 ...
24 24 votes
4 4 answers
9.0k
9.0k views
Consider a finite state machine (FSM) with one input $X$ and one output $f$, represented by the given state transition table. The minimum number of states required to rea...
21 21 votes
4 4 answers
10.3k
10.3k views
Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit w...