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

6 6 votes
3 3 answers
240
240 views
What is the output of the following code?#include <stdio.h int main() { register int x = 10; int *p = &x; printf("%d", *p); return 0; }$\texttt{10}$ $\texttt{0}$ Garbage ...
8 8 votes
2 2 answers
215
215 views
What can be said about the output of the following code?#include <stdio.h int main() { auto int x; printf("%d", x); return 0; }Output is always $\texttt{0}$ Output is alw...
8 8 votes
2 2 answers
208
208 views
What is the output of the following code?#include <stdio.h int a; static int b; int main() { printf("%d %d", a, b); return 0; }$\texttt{0\ 0}$ Garbage values $\texttt{1\ ...
7 7 votes
2 2 answers
234
234 views
What is the output of the following code?#include <stdio.h void fun() { static int x = 1; x = x + 2; printf("%d ", x); } int main() { fun(); fun(); fun(); return 0; }$\te...
7 7 votes
2 2 answers
208
208 views
What is the output of the following code?#include <stdio.h int x = 10; int main() { int x = 20; printf("%d", x); return 0; }
3 3 votes
3 3 answers
226
226 views
For a Boolean function $F(A,B,C)$, where $A$ is the most significant variable, the output is $0$ for input combinations $000$, $011$, and $101$. Which of the following is...
4 4 votes
3 3 answers
299
299 views
Simplify the Boolean expression $F=(A+\overline{B})(A+C)+\overline{A}B+BC$.$A+B+C$ $A+\overline{B}C$ $AB+BC$ $A+C$
5 5 votes
4 4 answers
263
263 views
In the following hexadecimal addition, find the digit $x$. $$(4x\mathrm{D})_{16}+(2\mathrm{B}7)_{16}=(744)_{16}$$
6 6 votes
2 2 answers
197
197 views
How many $8$-bit patterns represent the same decimal value when interpreted as sign-magnitude and $1$'s complement numbers?$64$ $127$ $128$ $255$
5 5 votes
2 2 answers
162
162 views
An $8$-bit pattern represents $-45$ in $2$'s complement form. If the same bit pattern is interpreted as a $1$'s complement number, what decimal value does it represent?$-...
To see more, click for the full list of questions or popular tags.