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
9
votes
3
answers
721
GO Classes Test Series 2024 | Programming | Test 1 | Question: 24
What will be the output of the following C program? Assume that negative numbers are represented using $2’s$ complement. #include<stdio.h> void main() { int a = 2; a = ~a+2 << 1; printf("%d",a); }
What will be the output of the following C program?Assume that negative numbers are represented using $2’s$ complement.#include<stdio.h void main() { int a = 2; a = ~a+...
GO Classes
928
views
GO Classes
asked
Apr 18, 2022
Programming in C
goclasses2024-programming-1-weekly-quiz
numerical-answers
goclasses
programming
programming-in-c
output
1-mark
+
–
2
votes
2
answers
722
GO Classes 2023 | Weekly Quiz 7 | Question: 3
Let $\text{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}$ ... is true for that row. Let $\text{P}$ be $a \leftrightarrow b$ How many models are there for $\text{P}?$
Let $\text{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 ...
GO Classes
361
views
GO Classes
asked
Apr 14, 2022
Mathematical Logic
goclasses_wq7
goclasses
numerical-answers
mathematical-logic
propositional-logic
2-marks
+
–
3
votes
2
answers
723
GO Classes 2023 | Weekly Quiz 7 | Question: 4
Consider the following statement $\text{S}$ in an universe $\text{U}.$ $\text{S} : \forall x \forall y (x = y)$ What is the maximum cardinality of $\text{U}$ such that $\text{S}$ is true?
Consider the following statement $\text{S}$ in an universe $\text{U}.$$\text{S} : \forall x \forall y (x = y)$What is the maximum cardinality of $\text{U}$ such that $\te...
GO Classes
361
views
GO Classes
asked
Apr 14, 2022
Mathematical Logic
goclasses_wq7
goclasses
numerical-answers
mathematical-logic
first-order-logic
1-mark
+
–
3
votes
1
answer
724
GO Classes 2023 | Weekly Quiz 7 | Question: 10
Consider a set $\text{A} = \{ a,b,c,d,e,f,g \}.$ Consider the following partition $\text{P}$ of set $\text{A}:$ $\text{P} : \{ \{a,b\} , \{c\}, \{d\}, \{e,f,g\} \}$ ... that the set of equivalence classes of $\text{R}$ is exactly the same as partition $\text{P}.$ What is the cardinality of relation $\text{R}?$
Consider a set $\text{A} = \{ a,b,c,d,e,f,g \}.$Consider the following partition $\text{P}$ of set $\text{A}:$$\text{P} : \{ \{a,b\} , \{c\}, \{d\}, \{e,f,g\} \}$We defin...
GO Classes
343
views
GO Classes
asked
Apr 14, 2022
Set Theory & Algebra
goclasses_wq7
goclasses
numerical-answers
set-theory&algebra
set-theory
relations
1-mark
+
–
3
votes
1
answer
725
GO Classes 2023 | Weekly Quiz 7 | Question: 12
Let $\text{A, B}$ be two non-empty sets, with cardinality $3,4$ respectively. Let $\text{R}$ be a relation defined on the power set of $\text{A} \times \text{B}.$ Relation $\text{R}$ is reflexive, symmetric, transitive and antisymmetric. How many equivalence classes does relation $\text{R}$ have?
Let $\text{A, B}$ be two non-empty sets, with cardinality $3,4$ respectively. Let $\text{R}$ be a relation defined on the power set of $\text{A} \times \text{B}.$ Relatio...
GO Classes
656
views
GO Classes
asked
Apr 14, 2022
Set Theory & Algebra
goclasses_wq7
goclasses
numerical-answers
set-theory&algebra
set-theory
relations
equivalence-class
2-marks
+
–
5
votes
1
answer
726
GO Classes 2023 | Weekly Quiz 6 | Question: 2
What will be the output of the following program? #include<stdio.h> main() { int a[2][3][4]; printf("%d", a[1][0]-a[0][2]); }
What will be the output of the following program?#include<stdio.h main() { int a [3][4]; printf("%d", a [0]-a[0] ); }
GO Classes
532
views
GO Classes
asked
Apr 6, 2022
Programming in C
goclasses_wq6
goclasses
programming
programming-in-c
array
output
numerical-answers
2-marks
+
–
6
votes
4
answers
727
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
695
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
728
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
525
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
729
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
513
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
730
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
563
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
731
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
829
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
732
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
621
views
GO Classes
asked
Mar 26, 2022
Programming in C
goclasses_wq4
goclasses
programming
programming-in-c
recursion
numerical-answers
2-marks
+
–
5
votes
1
answer
733
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
334
views
GO Classes
asked
Mar 23, 2022
Mathematical Logic
goclasses
goclasses_wq3
mathematical-logic
propositional-logic
numerical-answers
1-mark
+
–
Page:
« prev
1
...
20
21
22
23
24
25
26
27
28
29
30
...
72
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register