Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Questions with numerical answers and no options. No negative marks for these questions.
Recent questions tagged numerical-answers
6
votes
4
answers
751
GO Classes 2023 | Weekly Quiz 4 | Question: 10
int find(int n) { int i, j, k, a = 1; for (i = 1; i <= n; i++) for (j = 1; j <= i; j++) for (k = 1; k <= j; k++) a = a + 1; return a; } What will be the value of find$(10)$?
int find(int n) { int i, j, k, a = 1; for (i = 1; i <= n; i++) for (j = 1; j <= i; j++) for (k = 1; k <= j; k++) a = a + 1; return a; }What will be the value of find$(10)...
GO Classes
724
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
numerical-answers
programming
programming-in-c
loop
goclasses
2-marks
+
–
2
votes
3
answers
752
GO Classes 2023 | Weekly Quiz 4 | Question: 17
How many times is foo activated (called), including the first "$\text{foo}(3,12)$" $\text{max()}$ and $\text{min()}$ are functions that return maximum and minimum respectively. int foo(int a, int b) { if (a==b) { return b; } int mn =min(a,b), mx =max(a,b); return foo(mn,mn) + foo( mx - mn , mn); }
How many times is foo activated (called), including the first "$\text{foo}(3,12)$"$\text{max()}$ and $\text{min()}$ are functions that return maximum and minimum respecti...
GO Classes
545
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
numerical-answers
goclasses
programming
programming-in-c
recursion
2-marks
+
–
5
votes
3
answers
753
GO Classes 2023 | Weekly Quiz 4 | Question: 20
What will be output printed by $\text{mystery}2(6)$? void mystery2(int n) { if (n > 0) { printf("%d", n); mystery2(n-2); mystery2(n-3); printf("%d", n); } }
What will be output printed by $\text{mystery}2(6)$?void mystery2(int n) { if (n 0) { printf("%d", n); mystery2(n-2); mystery2(n-3); printf("%d", n); } }
GO Classes
528
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
1-mark
+
–
4
votes
3
answers
754
GO Classes 2023 | Weekly Quiz 4 | Question: 21
What will be the output printed by $\text{mystery}3(6)$? void mystery3(int n) { if (n == 0 || n == 1) return; mystery3(n-2); printf("%d", n); mystery3(n-1); }
What will be the output printed by $\text{mystery}3(6)$?void mystery3(int n) { if (n == 0 || n == 1) return; mystery3(n-2); printf("%d", n); mystery3(n-1); }
GO Classes
584
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
1-mark
+
–
5
votes
3
answers
755
GO Classes 2023 | Weekly Quiz 4 | Question: 22
Consider the following pair of mutually recursive functions. What does $g(g(2))$ evaluate to? int f(int n){ if (n==0) return 0; return f(n-1)+g(n-1); } int g(int n){ if (n==0) return 1; return g(n-1) + f(n); }
Consider the following pair of mutually recursive functions. What does $g(g(2))$ evaluate to?int f(int n){ if (n==0) return 0; return f(n-1)+g(n-1); } int g(int n){ if (n...
GO Classes
879
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
2-marks
+
–
9
votes
2
answers
756
GO Classes 2023 | Weekly Quiz 4 | Question: 23
Consider the following recursive function. What is $f(0)?$ int f(int x) { if (x > 1000) return x - 4; else return f(f(x+5)); }
Consider the following recursive function. What is $f(0)?$int f(int x) { if (x 1000) return x - 4; else return f(f(x+5)); }
GO Classes
637
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
2-marks
+
–
27
votes
5
answers
757
GO Classes CS 2025 | Weekly Quiz 1 | Propositional Logic | Question: 12
Let $P$ be a compound proposition over $4$ propositional variables: $a,b,c,d$. We know that for a compound proposition over $n$ propositional variables, we have $2^n$ rows in the truth table. Every row of truth table of $P$ is called ... $P$ be $'a \rightarrow b'$. How many models are there for $P?$
Let $P$ be a compound proposition over $4$ propositional variables: $a,b,c,d$.We know that for a compound proposition over $n$ propositional variables, we have $2^n$ rows...
GO Classes
1.9k
views
GO Classes
asked
Mar 23, 2022
Mathematical Logic
goclasses
goclasses2025_cs_wq1
mathematical-logic
propositional-logic
numerical-answers
2-marks
+
–
4
votes
3
answers
758
GO Classes CS 2025 | Weekly Quiz 1 | Propositional Logic | Question: 3
Suppose that the statement $p \rightarrow \neg q$ is false. What is the number of all possible combinations of truth values of $r$ and $s$ for which $(\neg q \rightarrow r) \wedge (\neg p \vee s)$ is true?
Suppose that the statement $p \rightarrow \neg q$ is false. What is the number of all possible combinations of truth values of $r$ and $s$ for which $(\neg q \rightarrow ...
GO Classes
2.3k
views
GO Classes
asked
Mar 23, 2022
Mathematical Logic
goclasses
goclasses2025_cs_wq1
mathematical-logic
propositional-logic
numerical-answers
1-mark
+
–
5
votes
1
answer
759
GO Classes 2023 | Weekly Quiz 3 | Question: 17
If the statement $q \wedge r$ is true, then the number of all combinations of truth values for $p$ and $s$ such that the statement $(q \rightarrow [\neg p \vee s]) \wedge [\neg s \rightarrow r]$ is TRUE is ______
If the statement $q \wedge r$ is true, then the number of all combinations of truth values for $p$ and $s$ such that the statement $(q \rightarrow [\neg p \vee s]) \wedge...
GO Classes
348
views
GO Classes
asked
Mar 23, 2022
Mathematical Logic
goclasses
goclasses_wq3
mathematical-logic
propositional-logic
numerical-answers
1-mark
+
–
11
votes
4
answers
760
GO Classes CS 2025 | Weekly Quiz 1 | Propositional Logic | Question: 13
The number of combinations of truth values for $p, q$ and $r$ for which the statement $\neg p \leftrightarrow (q \wedge \neg (p \rightarrow r))$ is true ________
The number of combinations of truth values for $p, q$ and $r$ for which the statement $\neg p \leftrightarrow (q \wedge \neg (p \rightarrow r))$ is true ________
GO Classes
1.2k
views
GO Classes
asked
Mar 23, 2022
Mathematical Logic
goclasses
goclasses2025_cs_wq1
mathematical-logic
propositional-logic
numerical-answers
2-marks
+
–
40
votes
3
answers
761
GATE CSE 2022 | Question: 18
Suppose a binary search tree with $1000$ distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with $0,$ the $3^{\text{rd}}$ largest element of the tree is stored at index ______________ .
Suppose a binary search tree with $1000$ distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assumin...
Arjun
15.2k
views
Arjun
asked
Feb 15, 2022
DS
gatecse-2022
numerical-answers
data-structures
binary-search-tree
1-mark
+
–
6
votes
3
answers
762
GATE CSE 2022 | Question: 19
Consider the augmented grammar with $\{ +, {\ast}, (,),\text{id} \}$ as the set of terminals. $S' \rightarrow S$ $S \rightarrow S + R\; |\; R$ $R \rightarrow R {\ast} P \;| \;P$ $P \rightarrow (S)\; |\; \text{id} $ If $I_{0}$ is ... $\{ [S' \rightarrow S.], [S \rightarrow S. + R] \}$, then $\textit{goto(closure}(I_{0}), +)$ contains exactly ______________ items.
Consider the augmented grammar with $\{ +, {\ast}, (,),\text{id} \}$ as the set of terminals.$S’ \rightarrow S$$S \rightarrow S + R\; |\; R$$R \rightarrow R {\ast} P \;...
Arjun
7.3k
views
Arjun
asked
Feb 15, 2022
Compiler Design
gatecse-2022
numerical-answers
compiler-design
parsing
lr-parser
1-mark
+
–
19
votes
5
answers
763
GATE CSE 2022 | Question: 20
Consider a simple undirected graph of $10$ vertices. If the graph is disconnected, then the maximum number of edges it can have is _______________ .
Consider a simple undirected graph of $10$ vertices. If the graph is disconnected, then the maximum number of edges it can have is _______________ .
Arjun
8.8k
views
Arjun
asked
Feb 15, 2022
Graph Theory
gatecse-2022
numerical-answers
graph-theory
graph-connectivity
1-mark
+
–
15
votes
1
answer
764
GATE CSE 2022 | Question: 21
Consider a relation $R (A, B, C, D, E)$ with the following three functional dependencies. $AB \rightarrow C; \; BC \rightarrow D; \; C \rightarrow E;$ The number of superkeys in the relation $R$ is ______________ .
Consider a relation $R (A, B, C, D, E)$ with the following three functional dependencies.$AB \rightarrow C; \; BC \rightarrow D; \; C \rightarrow E;$The number of superke...
Arjun
8.6k
views
Arjun
asked
Feb 15, 2022
Databases
gatecse-2022
numerical-answers
databases
database-normalization
1-mark
+
–
17
votes
3
answers
765
GATE CSE 2022 | Question: 22
The number of arrangements of six identical balls in three identical bins is _____________ .
The number of arrangements of six identical balls in three identical bins is _____________ .
Arjun
10.4k
views
Arjun
asked
Feb 15, 2022
Combinatory
gatecse-2022
numerical-answers
combinatory
balls-in-bins
1-mark
+
–
13
votes
2
answers
766
GATE CSE 2022 | Question: 23
A cache memory that has a hit rate of $0.8$ has an access latency $10 \; \text{ns}$ and miss penalty $100 \; \text{ns}.$ An optimization is done on the cache to reduce the miss rate. However, the optimization results ... (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _______________.
A cache memory that has a hit rate of $0.8$ has an access latency $10 \; \text{ns}$ and miss penalty $100 \; \text{ns}.$ An optimization is done on the cache to reduce th...
Arjun
9.1k
views
Arjun
asked
Feb 15, 2022
CO and Architecture
gatecse-2022
numerical-answers
co-and-architecture
cache-memory
1-mark
+
–
11
votes
4
answers
767
GATE CSE 2022 | Question: 24
The value of the following limit is ________________. $\lim_{x \rightarrow 0^{+}} \frac{\sqrt{x}}{1-e^{2\sqrt{x}}}$
The value of the following limit is ________________.$$\lim_{x \rightarrow 0^{+}} \frac{\sqrt{x}}{1-e^{2\sqrt{x}}}$$
Arjun
6.4k
views
Arjun
asked
Feb 15, 2022
Calculus
gatecse-2022
numerical-answers
calculus
limits
1-mark
+
–
16
votes
4
answers
768
GATE CSE 2022 | Question: 25
Consider the resolution of the domain name $\textsf{www.gate.org.in}$ by a $\text{DNS}$ resolver. Assume that no resource records are cached anywhere across the $\text{DNS}$ servers and that iterative query mechanism is used in the resolution. The number of $\text{DNS}$ query-response pairs involved in completely resolving the domain name is ________________.
Consider the resolution of the domain name $\textsf{www.gate.org.in}$ by a $\text{DNS}$ resolver. Assume that no resource records are cached anywhere across the $\text{DN...
Arjun
11.3k
views
Arjun
asked
Feb 15, 2022
Computer Networks
gatecse-2022
numerical-answers
computer-networks
1-mark
+
–
25
votes
5
answers
769
GATE CSE 2022 | Question: 46
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo) Dept(dNo, dName) Course(cNo, cName, dNo) Register(sNo, cNo) ... SELECT cNo FROM Register WHERE sNo = S.sNo) The number of rows returned by the above $\text{SQL}$ query is ____________.
Consider the relational database with the following four schemas and their respective instances.Student(sNo, sName, dNo) Dept(dNo, dName)Course(cNo, cName, dNo) Register(...
Arjun
12.7k
views
Arjun
asked
Feb 15, 2022
Databases
gatecse-2022
numerical-answers
databases
sql
2-marks
+
–
22
votes
2
answers
770
GATE CSE 2022 | Question: 47
Consider a network with three routers $\text{P, Q, R}$ shown in the figure below. All the links have cost of unity. The routers exchange distance vector routing information and have converged on the routing tables, after which the link $\text{Q-R}$ ... off to one decimal place) between $\text{P}$ and $\text{Q},$ leading to count-to-infinity problem, is _______________.
Consider a network with three routers $\text{P, Q, R}$ shown in the figure below. All the links have cost of unity.The routers exchange distance vector routing informatio...
Arjun
9.7k
views
Arjun
asked
Feb 15, 2022
Computer Networks
gatecse-2022
numerical-answers
computer-networks
routing
distance-vector-routing
2-marks
+
–
20
votes
3
answers
771
GATE CSE 2022 | Question: 48
Let $\textit{G(V,E)}$ be a directed graph, where $\textit{V} = \{ 1, 2, 3, 4, 5 \}$ is the set of vertices and $\textit{E}$ is the set of directed edges, as defined by the following adjacency matrix $\textit{A}.$ ... contains a directed path from $r$ to every other vertex in $V.$ The number of such directed spanning trees rooted at vertex $5$ is __________________.
Let $\textit{G(V,E)}$ be a directed graph, where $\textit{V} = \{ 1, 2, 3, 4, 5 \}$ is the set of vertices and $\textit{E}$ is the set of directed edges, as defined by th...
Arjun
7.5k
views
Arjun
asked
Feb 15, 2022
Algorithms
gatecse-2022
numerical-answers
algorithms
spanning-tree
2-marks
+
–
8
votes
2
answers
772
GATE CSE 2022 | Question: 49
Consider a $100 \; \text{Mbps}$ link between an earth station (sender) and a satellite (receiver) at an altitude of $2100 \; \text{km}.$ The signal propagates at a speed of $3 \times 10^{8} \; \text{m/s.}$ ... $1000 \; \text{bytes}$ transmitted by the sender is _______________.
Consider a $100 \; \text{Mbps}$ link between an earth station (sender) and a satellite (receiver) at an altitude of $2100 \; \text{km}.$ The signal propagates at a speed ...
Arjun
7.4k
views
Arjun
asked
Feb 15, 2022
Computer Networks
gatecse-2022
numerical-answers
computer-networks
2-marks
+
–
8
votes
3
answers
773
GATE CSE 2022 | Question: 50
Consider the data transfer using $\text{TCP}$ over a $1 \; \text{Gbps}$ link. Assuming that the maximum segment lifetime $\text{(MSL)}$ is set to $60 \; \text{seconds},$ the minimum number of bits required for the sequence number field of the $\text{TCP}$ header, to prevent the sequence number space from wrapping around during the $\text{MSL}$ is ________________.
Consider the data transfer using $\text{TCP}$ over a $1 \; \text{Gbps}$ link. Assuming that the maximum segment lifetime $\text{(MSL)}$ is set to $60 \; \text{seconds},$ ...
Arjun
7.5k
views
Arjun
asked
Feb 15, 2022
Computer Networks
gatecse-2022
numerical-answers
computer-networks
tcp
2-marks
+
–
18
votes
5
answers
774
GATE CSE 2022 | Question: 51
A processor $\text{X}_{1}$ operating at $2 \; \text{GHz}$ has a standard $5-$stage $\text{RISC}$ instruction pipeline having a base $\text{CPI (cycles per instruction)}$ of one without any pipeline hazards. For a given program $\text{P}$ ... $\text{X}_{2}$ over $\text{X}_{1}$ in executing $\text{P}$ is _______________.
A processor $\text{X}_{1}$ operating at $2 \; \text{GHz}$ has a standard $5-$stage $\text{RISC}$ instruction pipeline having a base $\text{CPI (cycles per instruction)}$ ...
Arjun
10.1k
views
Arjun
asked
Feb 15, 2022
CO and Architecture
gatecse-2022
numerical-answers
co-and-architecture
pipelining
stall
2-marks
+
–
34
votes
6
answers
775
GATE CSE 2022 | Question: 52
Consider the queues $Q_{1}$ containing four elements and $Q_{2}$ containing none (shown as the $\textsf{Initial State}$ in the figure). The only operations allowed on these two queues are $\textsf{Enqueue (Q, element)}$ ... $\textsf{Final State}$ in the figure) without using any additional storage is________________.
Consider the queues $Q_{1}$ containing four elements and $Q_{2}$ containing none (shown as the $\textsf{Initial State}$ in the figure). The only operations allowed on the...
Arjun
18.5k
views
Arjun
asked
Feb 15, 2022
DS
gatecse-2022
numerical-answers
data-structures
queue
2-marks
+
–
30
votes
3
answers
776
GATE CSE 2022 | Question: 53
Consider two files systems $\text{A}$ and $\text{B}$, that use contiguous allocation and linked allocation, respectively. A file of size $100$ blocks is already stored in $\text{A}$ and also in $\text{B}$. Now, consider inserting a new block in the middle of ... $\text{B}$ are $n_{A}$ and $n_{B}$, respectively, then the value of $n_{A} + n_{B}$ is__________________.
Consider two files systems $\text{A}$ and $\text{B}$, that use contiguous allocation and linked allocation, respectively. A file of size $100$ blocks is already stored in...
Arjun
9.8k
views
Arjun
asked
Feb 15, 2022
Operating System
gatecse-2022
numerical-answers
operating-system
file-system
2-marks
+
–
Page:
« prev
1
...
21
22
23
24
25
26
27
28
29
30
31
...
73
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register