Recent questions tagged gatecse-2023

55 55 votes
9 9 answers
28.4k
28.4k views
Consider the following statements regarding the front-end and back-end of a compiler.S1: The front-end includes phases that are independent of the target hardware.S2: The...
33 33 votes
3 3 answers
14.3k
14.3k views
Which one of the following sequences when stored in an array at locations $A , \ldots, A[10]$ forms a max-heap?$23,17,10,6,13,14,1,5,7,12$$23,17,14,7,13,10,1,5,6,12$$23,1...
45 45 votes
6 6 answers
27.5k
27.5k views
Let $\textsf{SLLdel}$ be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let $\textsf...
36 36 votes
11 11 answers
28.1k
28.1k views
Consider the Deterministic Finite-state Automaton ($\text{DFA}$) $\mathcal{A}$ shown below. The $\text{DFA}$ runs on the alphabet $\{0,1\}$, and has the set of states $\{...
25 25 votes
4 4 answers
17.5k
17.5k views
The Lucas sequence $L_{n}$ is defined by the recurrence relation:\[L_{n}=L_{n-1}+L_{n-2}, \quad \text { for } \quad n \geq 3,\]with $L_{1}=1$ and $L_{2}=3$.Which one of t...
117 117 votes
20 answers 20 answers
29.8k
29.8k views
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?Number of attributes of its relation schema.Number of tu...
44 44 votes
11 11 answers
30.1k
30.1k views
Suppose two hosts are connected by a point-to-point link and they are configured to use $\textsf{Stop-and-Wait}$ protocol for reliable data transfer. Identify in which on...
66 66 votes
8 8 answers
27.7k
27.7k views
Let\[A=\left[\begin{array}{llll}1 & 2 & 3 & 4 \\4 & 1 & 2 & 3 \\3 & 4 & 1 & 2 \\2 & 3 & 4 & 1\end{array}\right]\]and\[B=\left[\begin{array}{llll}3 & 4 & 1 & 2 \\4 & 1 & 2...
38 38 votes
5 5 answers
19.4k
19.4k views
Consider the following definition of a lexical token $\textbf{id}$ for an identifier in a programming language, using extended regular expressions:\[\begin{array}{ll}\tex...
39 39 votes
7 7 answers
23.5k
23.5k views
An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries to maximize the number of collisions. Let $k$ be th...
38 38 votes
5 5 answers
29.4k
29.4k views
The output of a $2$-input multiplexer is connected back to one of its inputs as shown in the figure.Match the functional equivalence of this circuit to one of the followi...
37 37 votes
6 6 answers
23.6k
23.6k views
Which one or more of the following need to be saved on a context switch from one thread $\text{(T1)}$ of a process to another thread $\text{(T2)}$ of the same process?Pag...
47 47 votes
8 8 answers
29.6k
29.6k views
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?Function Callmalloc CallPage FaultSystem Call
17 17 votes
3 3 answers
16.9k
16.9k views
Which of the following statements is/are $\text{CORRECT}?$The intersection of two regular languages is regular.The intersection of two context-free languages is context-f...
36 36 votes
4 4 answers
22.8k
22.8k views
Which of the following statements is/are $\text{INCORRECT}$ about the $\textsf{OSPF (Open Shortest Path First)}$ routing protocol used in the Internet?$\textsf{OSPF}$ imp...
75 75 votes
7 answers 7 answers
31.2k
31.2k views
Geetha has a conjecture about integers, which is of the form\[\forall x(P(x) \Longrightarrow \exists y Q(x, y)),\]where $P$ is a statement about integers, and $Q$ is a st...
63 63 votes
4 4 answers
41.6k
41.6k views
Which one or more of the following $\text{CPU}$ scheduling algorithms can potentially cause starvation?First-in First-OutRound RobinPriority SchedulingShortest Job First
31 31 votes
4 4 answers
14.6k
14.6k views
Let $$\qquad f(x)=x^{3}+15 x^{2}-33 x-36$$be a real-valued function.Which of the following statements is/are $\text{TRUE}?$$f(x)$ does not have a local maximum.$f(x)$ has...
40 40 votes
5 5 answers
27.7k
27.7k views
Let $f$ and $g$ be functions of natural numbers given by $f(n)=n$ and $g(n)=n^{2}.$ Which of the following statements is/are $\text{TRUE}?$$f \in O(g)$$f \in \Omega(g)$$f...
52 52 votes
6 answers 6 answers
35.0k
35.0k views
Let $A$ be the adjacency matrix of the graph with vertices $\{1,2,3,4,5\}.$Let $\lambda_{1}, \lambda_{2}, \lambda_{3}, \lambda_{4}$, and $\lambda_{5}$ be the five eigenva...
23 23 votes
4 4 answers
23.1k
23.1k views
The value of the definite integral \[\int_{-3}^{3} \int_{-2}^{2} \int_{-1}^{1}\left(4 x^{2} y-z^{3}\right) \mathrm{d} z \mathrm{~d} y \mathrm{~d} x\]is _________. (Rounde...
22 22 votes
3 answers 3 answers
25.6k
25.6k views
A particular number is written as $132$ in radix-$4$ representation. The same number in radix-$5$ representation is _____________.
26 26 votes
4 answers 4 answers
21.1k
21.1k views
Consider a $3$-stage pipelined processor having a delay of $10 \mathrm{~ns}$ (nanoseconds), $20 \mathrm{~ns}$, and $14 \mathrm{~ns},$ for the first, second, and the third...
49 49 votes
8 8 answers
21.0k
21.0k views
A keyboard connected to a computer is used at a rate of $1$ keystroke per second. The computer system polls the keyboard every $10 \mathrm{~ms}$ (milli seconds) to check ...
49 49 votes
8 8 answers
27.2k
27.2k views
The integer value printed by the $\textsf{ANSI-C}$ program given below is _______________#include<stdio.h int funcp(){ static int x = 1; x++; return x; } int main(){ int ...
20 20 votes
2 2 answers
16.3k
16.3k views
Consider the following program:int main() { f1 (); f2(2); f3(); return (0); } int f1 () { return(1); } int f2 (int X) { f3(); if (X==1) return f1 (); else return (X * f2 ...
39 39 votes
6 answers 6 answers
29.2k
29.2k views
Consider the control flow graph shown.Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?$\text{B1: { }, B...
53 53 votes
10 answers 10 answers
44.7k
44.7k views
Consider the two functions $\textsf{incr}$ and $\textsf{decr}$ shown below. incr(){ decr(){ wait(s); wait(s); X = X+1; X = X-1; signal(s); signal(s); } }There are $5$ thr...
38 38 votes
8 8 answers
22.8k
22.8k views
Consider the context-free grammar $G$ below\[\begin{array}{l}S \rightarrow a S b \mid X \\X \rightarrow a X \mid X b \mid a \mid b,\end{array}\]where $S$ and $X$ are non-...
34 34 votes
5 5 answers
18.5k
18.5k views
Consider the pushdown automaton $\text{(PDA)}\;P$ below, which runs on the input alphabet $\{a, b\}$, has stack alphabet $\{\perp, A\}$, and has three states $\{s, p, q\}...