PRACTICE • LEARN • GROW
Module 2 Final Quiz: Processes & Threads MCQs
Solve topic-wise placement questions and improve your skills.
Module 2 Final Quiz: Processes & Threads Progress
0 of 10 completed
0%
Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
What data structure does the operating system use to store all metadata and state for an active process?
A.
Process Control Block (PCB / task_struct)
B.
Interrupt Vector Table (IVT)
C.
Translation Lookaside Buffer (TLB)
D.
File Allocation Table (FAT)
Explanation & Key
Correct Answer:
2
In the 5-state process model, which transition occurs when a running process issues an I/O read request?
A.
Running -> Ready
B.
Running -> Waiting / Blocked
C.
Waiting -> Ready
D.
Running -> Terminated
Explanation & Key
Correct Answer:
3
What value does the fork() system call return to the parent process and child process respectively in Unix/Linux?
A.
0 to parent, child PID to child
B.
Child PID (> 0) to parent, 0 to child
C.
0 to both parent and child
D.
-1 to parent, 1 to child
Explanation & Key
Correct Answer:
4
What is a Zombie Process in Unix-like systems?
A.
A process that is executing in an infinite loop consuming 100% CPU
B.
A process that has finished execution (exit) but whose parent has not yet read its exit status via wait(), leaving its entry in the process table
C.
A process whose parent terminated without waiting for it
D.
A process waiting for an I/O device that has been unplugged
Explanation & Key
Correct Answer:
5
What happens when a parent process terminates before its child process?
A.
The child process is immediately terminated by the kernel
B.
The child becomes an Orphan process and is adopted by init (PID 1) / systemd
C.
The child becomes a zombie forever
D.
The child process takes over the parent's PID
Explanation & Key
Correct Answer:
6
Which resources are shared among multiple threads belonging to the SAME process?
A.
Stack, registers, and program counter
B.
Code section, data section (global variables), heap, and open OS file descriptors
C.
Only CPU registers and thread ID
D.
Nothing; threads have completely isolated memory spaces like processes
Explanation & Key
Correct Answer:
7
Why is context switching between threads faster than context switching between processes?
A.
Threads run at a higher CPU clock frequency
B.
Thread context switching does not require changing the virtual address space (CR3 register in x86), preserving the TLB cache and avoiding expensive TLB flushes
C.
Threads do not save CPU registers during context switches
D.
Processes require rebooting the OS kernel during context switching
Explanation & Key
Correct Answer:
8
What is the primary drawback of the Many-to-One multithreading model (user-level threads mapped to a single kernel thread)?
A.
Thread creation is too slow
B.
If one user thread issues a blocking system call, the entire process blocks, and threads cannot run in true parallel on multi-core CPUs
C.
It consumes too much kernel memory
D.
It cannot execute C or C++ programs
Explanation & Key
Correct Answer:
9
What is Copy-on-Write (COW) optimization during fork()?
A.
Copying all files from disk to RAM before process execution
B.
Parent and child initially share the same physical pages marked read-only; physical copying occurs only when either process attempts to write to a page
C.
Writing code directly to cache memory instead of RAM
D.
Preventing child processes from modifying files on disk
Explanation & Key
Correct Answer:
10
In Inter-Process Communication (IPC), how does Shared Memory differ from Message Passing?
A.
Shared memory requires kernel mediation for every read/write; message passing does not
B.
Shared memory establishes a mapped memory region accessed directly at RAM speeds without kernel intervention after setup; message passing requires kernel system calls for each transfer
C.
Message passing is strictly faster than shared memory
D.
Shared memory works across distributed network computers; message passing does not
Explanation & Key
Correct Answer:
Question Palette
Answered
Current
Not Attempted
Wrong