Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by prateek_hazard
0
votes
1
GO Classes Test Series 2024 | Programming | Test 3 | Question: 23
What will be the output of the following lines of code? int i = 0; int j = 0; char *s = "ceded"; while (s[i] != '\0') { j = j + s[i] - 'b'; i = i + 1; } printf("%d %d\n", i, j); $5\; 11$ $4\; 16$ $5\; 16$ $4 \;11$
What will be the output of the following lines of code?int i = 0; int j = 0; char *s = "ceded"; while (s[i] != '\0') { j = j + s[i] - 'b'; i = i + 1; } printf("%d %d\n", ...
298
views
answered
May 5, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
loop
output
2-marks
+
–
3
votes
2
GO Classes Test Series 2024 | Programming | Test 3 | Question: 21
Consider the following C code where main shows the intended use of the functions relating to struct foo. struct foo { int x; int y; int * p; }; struct foo* make_foo() { struct foo *foo = malloc(sizeof( ... program has a dangling pointer Given program may result in run time error Given program will result in a compile-time error
Consider the following C code where main shows the intended use of the functions relating to struct foo.struct foo { int x; int y; int * p; }; struct foo* make_foo() { st...
568
views
answered
May 5, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
structure
pointers
multiple-selects
2-marks
+
–
3
votes
3
GO Classes 2023 | Weekly Quiz 3 | Question: 4
Let $A,\;B$ represent two propositions. Which of the following logical formulae is/are tautology? $A\wedge B\rightarrow (A\rightarrow B)$ $A\wedge \neg B \rightarrow \neg (A\rightarrow B)$ $\neg A\wedge B \rightarrow (A\rightarrow B)$ $\neg A\wedge \neg B \rightarrow (A\rightarrow B)$
Let $A,\;B$ represent two propositions.Which of the following logical formulae is/are tautology?$A\wedge B\rightarrow (A\rightarrow B)$$A\wedge \neg B \rightarrow \neg (A...
527
views
answered
Mar 27, 2022
Mathematical Logic
goclasses
goclasses_wq3
mathematical-logic
propositional-logic
multiple-selects
1-mark
+
–
1
votes
4
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...
2.0k
views
answered
Mar 26, 2022
Mathematical Logic
goclasses
goclasses2025_cs_wq1
mathematical-logic
propositional-logic
numerical-answers
2-marks
+
–
0
votes
5
Doubt in By Case Method to check Tautology
The Truth Value of a compound proposition (if there two pv p,q) is depend on both pv...Then while checking tautology in by case method why we check only one pv’s case like p = true p =false..why we dont check q also?
The Truth Value of a compound proposition (if there two pv p,q) is depend on both pv...Then while checking tautology in by case method why we check only one pv’s case l...
303
views
answered
Mar 25, 2022
Mathematical Logic
discrete-mathematics
propositional-logic
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register