Recent questions tagged goclasses-cs-dpp-day-291

6 6 votes
2 2 answers
206
206 views
Which of the following Boolean algebraic equations represent valid mathematical identities? (Select all that apply)$A \oplus B \oplus AB = A + B$$A + \bar{A}B + \bar{A}\b...
5 5 votes
3 answers 3 answers
240
240 views
Consider the Boolean function $F(w, x, y, z)$ given by the following expression:$$F = wxy + \bar{w}z + xyz + w\bar{x}y$$If this expression is minimized using Boolean alge...
4 4 votes
1 1 answer
148
148 views
Let $X$ be an $8$-bit integer stored in $2$'s complement representation. If the hexadecimal value of $X$ is given as $(E4)_{16}$, what is the decimal equivalent of the va...
5 5 votes
2 2 answers
201
201 views
Consider the valid base conversion equation $(123)_5 = (x8)_y$, where $x$ and $y$ are positive integers. What is the minimum possible decimal value of $x + y$?
5 5 votes
2 2 answers
192
192 views
8 8 votes
2 2 answers
301
301 views
What is the output of the following code?#include <stdio.h int main() { int i, j, sum = 0; for (i = 1; i <= 4; i++) { for (j = 1; j <= 5; j++) { if (j % i == 0) continue;...
7 7 votes
1 1 answer
232
232 views
What is the output of the following code?#include <stdio.h int solve(int n) { static int x = 1; if (n == 0) return x; x = x + n; return solve(n - 1); } int main() { print...
6 6 votes
1 1 answer
232
232 views
What is the output of the following code?#include <stdio.h struct Student { int marks; }; void update(struct Student s) { s.marks = s.marks + 10; } int main() { struct St...
7 7 votes
1 1 answer
199
199 views
What is the output of the following code?#include <stdio.h int fun(int n) { if (n == 0) return 1; return n * fun(n - 2); } int main() { printf("%d", fun(6)); return 0; }
7 7 votes
1 1 answer
220
220 views
What is the output of the following code?#include <stdio.h int main() { int a = 5, b = 10; int *p = &a; int q = &p; q = q + 3; p = &b; q = q + a; printf("%d %d", a, ...
To see more, click for the full list of questions or popular tags.