Recent questions tagged gatecse-2024-set1

88 88 votes
5 5 answers
25.2k
25.2k views
Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a function such that $f(x)=\max \left\{x, x^3\right\}, x \in \mathbb{R}$, where $\mathbb{R}$ is the set of all real numbers....
55 55 votes
15 15 answers
32.0k
32.0k views
The product of all eigenvalues of the matrix $\left[\begin{array}{lll}1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9\end{array}\right]$ is$-1$$0$$1$$2$
42 42 votes
5 5 answers
31.1k
31.1k views
Consider a system that uses $5$ bits for representing signed integers in $2$ 's complement format. In this system, two integers $A$ and $B$ are represented as $A$=$01010$...
40 40 votes
5 answers 5 answers
16.9k
16.9k views
Consider a permutation sampled uniformly at random from the set of all permutations of $\{1,2,3, \cdots, n\}$ for some $n \geq 4$. Let $X$ be the event that $1$ occurs be...
29 29 votes
3 3 answers
14.8k
14.8k views
​​​​Which one of the following statements is FALSE?In the cycle stealing mode of DMA, one word of data is transferred between an I/O device and main memory in a stolen cy...
31 31 votes
3 3 answers
13.2k
13.2k views
A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of...
46 46 votes
6 6 answers
29.8k
29.8k views
Given an integer array of size $N$, we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem by making a single...
41 41 votes
6 6 answers
30.3k
30.3k views
Consider the following $\mathrm{C}$ program:#include <stdio.h int main() { int a=6; int b = 0; while (a<10) { a = a / 12+1 ; a += b ;} printf ("%d", a); return 0 ; }Whi...
39 39 votes
4 4 answers
23.0k
23.0k views
​​​Consider the following $\mathrm{C}$ program:#include <stdio.h void fX (); int main(){ fX(); return 0 };void fX () { char a; if ((a=g e t c h a r()) ! = '\n') fX(); ...
21 21 votes
5 answers 5 answers
12.6k
12.6k views
Let $\mathrm{S}$ be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one...
35 35 votes
6 answers 6 answers
21.4k
21.4k views
In a $\mathrm{B}^+$ tree, the requirement of at least half-full $(50 \%)$ node occupancy is relaxed for which one of the following cases?Only the root nodeAll leaf nodesA...
57 57 votes
8 answers 8 answers
30.3k
30.3k views
Which of the following statements about a relation $\mathbf{R}$ in first normal form $\text{(1NF)}$ is/are TRUE?$\mathbf{R}$ can have a multi-attribute key$\mathbf{R}$ ca...
34 34 votes
7 7 answers
24.8k
24.8k views
​Let $L_1, L_2$ be two regular languages and $L_3$ a language which is not regular.Which of the following statements is/are always TRUE?$L_1=L_2$ if and only if $L_1 \cap...
50 50 votes
5 5 answers
26.8k
26.8k views
Which of the following statements about threads is/are TRUE?Threads can only be implemented in kernel spaceEach thread has its own file descriptor table for open filesAll...
23 23 votes
4 4 answers
26.1k
26.1k views
Which of the following process state transitions is/are NOT possible?Running to ReadyWaiting to RunningReady to WaitingRunning to Terminated
18 18 votes
3 3 answers
14.0k
14.0k views
Which of the following is/are Bottom-Up Parser(s)?Shift-reduce ParserPredictive ParserLL$(1)$ Parser LR Parser 
34 34 votes
3 3 answers
16.3k
16.3k views
Let $A$ and $B$ be two events in a probability space with $P(A)=0.3, P(B)=0.5$, and $P(A \cap B)=0.1$. Which of the following statements is/are TRUE?The two events $A$ an...
31 31 votes
5 5 answers
20.3k
20.3k views
​​Consider the circuit shown below where the gates may have propagation delays. Assume that all signal transitions occur instantaneously and that wires have no delays. Wh...
24 24 votes
5 5 answers
12.6k
12.6k views
​$\mathrm{TCP}$ client $\mathrm{P}$ successfully establishes a connection to $\text{TCP}$ server $\mathrm{Q}$. Let $\text{N}_{P}$ denote the sequence number in the $\text...
53 53 votes
3 3 answers
26.2k
26.2k views
Consider a $5$-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Whic...
39 39 votes
5 5 answers
20.0k
20.0k views
Which of the following fields is/are modified in the $\text{IP}$ header of a packet going out of a network address translation $\text{(NAT)}$ device from an internal netw...
34 34 votes
8 answers 8 answers
19.2k
19.2k views
Let $A$ and $B$ be non-empty finite sets such that there exist one-to-one and onto functions $\text{(i)}$ from $A$ to $B$ and $\text{(ii)}$ from $A \times A$ to $A \cup B...
19 19 votes
4 answers 4 answers
23.2k
23.2k views
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. $$\begin{array}{|c|l|}\hline \textbf{Operator} & ...
32 32 votes
4 4 answers
22.2k
22.2k views
The number of spanning trees in a complete graph of $4$ vertices labelled $\text{A, B, C,}$ and $\text{D}$ is _________.
28 28 votes
2 2 answers
15.2k
15.2k views
Consider the following two relations, $R(A, B)$ and $S(A, C)$:$$\begin{array}{|c|}\hline\textbf{R} \\\hline\begin{array}{c|c}\textbf{A} & \textbf{B} \\\hline\text{10} & ...
38 38 votes
8 8 answers
22.4k
22.4k views
Consider a network path $\mathrm{P}-\mathrm{Q}-\mathrm{R}$ between nodes $\mathrm{P}$ and $\mathrm{R}$ via router $\mathrm{Q}$. Node $\mathrm{P}$ sends a file of size $10...
15 15 votes
4 answers 4 answers
13.9k
13.9k views
​Consider the following syntax-directed definition $\text{(SDD)}$.$$\begin{array}{|l|l|} \hline \text{$S \rightarrow D H T U$} & \text{$ \left\{S.v a l = D.val + H.val +...
20 20 votes
2 answers 2 answers
12.3k
12.3k views
Consider the following grammar $G$, with $S$ as the start symbol. The grammar $G$ has three incomplete productions denoted by $(1), (2)$, and $(3)$.$$\begin{aligned} & S ...
14 14 votes
2 2 answers
15.4k
15.4k views
Consider the following pseudo-code.L 1: t1 = -1 L 2: t2 = 0 L 3: t3 = 0 L 4: t4 = 4 * t3 L 5: t5 = 4 * t2 L 6: t6 = t5 * M L 7: t7 = t4 + t6 L 8: t8 = a[t7] L 9: if t8 <...
26 26 votes
5 5 answers
17.9k
17.9k views
​​​Consider the following two threads $\mathrm{T} 1$ and $\mathrm{T} 2$ that update two shared variables $\mathrm{a}$ and $\mathrm{b}$. Assume that initially $\mathrm{a}=...