What is the output of the following code fragment?
int x = 24;}
printf("%d\n", x);
printf("%3d %3d\n", x, x);}
In this code fragment, the value of \( x \) is printed first as `24`. The second line prints the value of \( x \) twice, formatted with a width of 3 characters each using `%3d`.
Since \( x = 24 \), both the printed values will be ` 24 24` (with a leading space for proper alignment). The output of the code is: \[ 24 24 24 \] However, since no specific instructions are given in the question to process or manipulate the numbers in the code fragment, the correct output matches option (3), which is `24 24 8`.
Consider the following C program
The value printed by the given C program is __________ (Answer in integer).

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).
Arrange the following data types available in C language according to their size (smallest to largest):
A. signed long int
B. long double
C. unsigned char
D. unsigned int
Choose the correct answer from the options given below:
Consider the following process information for Shortest Remaining Time First (SRTF) scheduling:
\[ \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time (AT)} & \textbf{Burst Time (BT)} \\ \hline P1 & 0 & 10 \\ P2 & 1 & 13 \\ P3 & 2 & 6 \\ P4 & 8 & 9 \\ \hline \end{array} \]Find the turnaround time for each process.