PM
CMPE320 Exam questions and answers with complete
solutions verified latest update graded a++ 2025/2026
True T/F You must use tabs in Makefiles
5 For the simulation homework, what's the default length
of an IO operation?
pcb The acronym of an entry in the list of processes is (use
lower case letters)
Given the output of the homework simulator
below, select the options that are passed to
the simulator (treat WAITING as BLOCKED)
Select the default options of the
simulator in the homework Options:
IO_DONE_LATER IO_DONE_IMME
SWITCH_ON_IO DIATE
IO_DONE_LAT
ER
SWITCH_
ON_END
SWITCH_
1/
18
,7/7/25, 5:32
PM
ON_IO
heap In the address space of a process, dynamically
allocated memory (e.g. by calling malloc()) is
placed in ___________
How many processes will the following program
create? (including the main process). Write
down a number, e.g. 6
8 int
main()
{ fork(
);
fork();
fork();
}
Which of the followings are correct? When you call
"fork()", ...
1. If it returns 0, you are in the parent process
2. If it returns 0, you are in the child process
2, 3, 5
3. If it returns -1, you are in the parent process
4. If it returns -1, you are in the child process
2/
18
, 7/7/25, 5:32
PM
5. It will return the child's process id if you are in the
parent process
6. It will return the parent's process id if you are in the
child process
True T/F A successful call to "execvp" never returns.
a non-cooperative Using timer interrupt is
approach
The user program Who will specify the system-call number?
The OS Who will execute the "return-from-trap" instruction?
True T/F Rebooting the machine is a good approach
to improving the behavior of a computer
system.
What is the average turnaround time using FIFO
for the following jobs? Assume the jobs arrived
at almost the same time in the order: A, B, C.
Choose the closest answer.
10
Here is the job list, with the
run time of each job: Job A (
length = 6 )
Job B (
length = 2
3/
18