Mid1 Sec05 Fall2020 Cse325-1-2
Mid1 Sec05 Fall2020 Cse325-1-2
Note: There are SIX questions, answer ALL of them. Course Outcome (CO), Cognitive Level and
Mark of each question are mentioned at the right margin.
1. Is process table needed in a batch processing system? Explain briefly. [CO1, C3,
Marks:3]
2. In a speech to text synthesis app such as Google assistant you need to click
the microphone icon. Then it will listen to your instruction such as “Play [CO1, C3,
Senorita song”. After hearing the instruction, the speech is converted into text Marks:5]
which will be displayed on the screen. Then it will complete executing the
instruction by playing the song on Youtube. Briefly explain in which
state/states the process was in the given scenario.
[CO1, C3,
3. Explain briefly how multiple interrupt signals are handled in a system.
Marks:3]
4. Assume a uniprocessor system has three processes (P1, P2, and P3) and
P1 needs five (5), P2 needs four (4), and P3 needs six (6) seconds CPU [CO1, C3,
time. Each of which needs three (3), three (3), three (3) seconds of input Marks:7]
waiting time respectively and five (5), four (4), six (6) seconds of output
waiting time respectively. Consider a time slice of 3 seconds. How long
will it take to complete the processes in:
a. Batch processing system?
b. Timesharing system?
Also, calculate the time efficiency.
5. Find the output for the following program. Show all necessary steps. [CO2, C3,
Marks:5]
main( )
{
int i=0;
p=fork();
printf(“Tuesday\n”);
while (i<2)
{
if(p>0){
Page 1
10 November, 2020
printf(“CSE”);
}
else{
p=fork();
printf(“Hello World\n”);
}
i++;
}
}
Page 2