What is the output of the following C program?
#include #include main()
{ int sum = 0, n = 1729;
do { sum += n % 10; n = n / 10; }
while (n>0); printf("%d", sum); }
What is the output of the following code fragment?
int x = 24;}
printf("%d\n", x);
printf("%3d %3d\n", x, x);}
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into the I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _________ (Answer in integer).
Consider the following C program
The value printed by the given C program is _________ (Answer in integer).
Match the following layers with their corresponding functionalities:
\[ \begin{array}{|c|c|} \hline \textbf{Layer} & \textbf{Functionality} \\ \hline \text{Networking Layer} & \text{Data packet transfer} \\ \text{Transport Layer} & \text{Host-to-host communication} \\ \text{Data Link Layer} & \text{Error detection and correction} \\ \hline \end{array} \]The surface integral \( \int_S x^2 \, dS \) over the upper hemisphere
\[ z = \sqrt{1 - x^2 - y^2} \]
with radius 1 is ..........