WorksheetsProcess Management Quiz
Total questions: 16
Worksheet time: 8mins
What is a process in the context of an operating system?
A program stored on disk
A user interface
A program in execution
A type of hardware
Which of the following is NOT a state of a process?
Waiting
Running
Suspended
New
What does a Process Control Block (PCB) contain?
Only the memory pointers
Only the program code
Only the process ID
Information associated with each process
What is the purpose of a context switch?
To execute multiple processes simultaneously
To switch the CPU from one process to another
To create a new process
To terminate a process
What system call is used to create a new child process in UNIX?
wait()
exec()
abort()
fork()
What happens when a process terminates?
It enters a waiting state
It creates a new process
It asks the OS to delete it
It remains in memory indefinitely
What is a zombie process?
A process that is currently running
A terminated process whose parent has not called wait()
A process that has been aborted
A process that is waiting for resources
Which of the following is a reason for cooperating processes?
Reduced CPU utilization
Increased memory usage
Information sharing
Isolation of processes
What is the main advantage of shared memory IPC?
It is simpler to set up than message passing
It allows faster communication once set up
It requires system calls for every message
It is slower than message passing
What is the primary function of the process scheduler?
To terminate processes
To manage memory allocation
To create new processes
To select processes for execution on the CPU
What does the wait() system call do?
Creates a new process
Terminates a process
Waits for a child process to terminate
Switches the CPU to another process
What is the role of the heap in a process?
To hold global variables
To contain dynamically allocated memory
To store the program code
To manage process states
What is cascading termination?
When a parent process terminates all its children
When a process creates multiple child processes
When a process waits for another to finish
When a process switches states
Which of the following is NOT a part of the process state?
Idle
Blocked
Running
Ready
What is the main disadvantage of message passing IPC?
It requires system calls for every message transfer
It is faster than shared memory
It is more complicated to set up
It does not work across multiple computers
What is the purpose of the program counter in a PCB?
To track process states
To indicate the next instruction to execute
To store the process ID
To manage memory allocation
