OS & Networking

Process Management — Practice MCQs for CCAT

20 Questions Section B: Programming OS & Networking

Practice 20 Process Management multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

Q1.
Process Control Block (PCB) contains:
AOnly process ID
BProcess state, registers, memory info
COnly memory address
DOnly CPU registers
Show Answer & Explanation

Correct Answer: B — Process state, registers, memory info

PCB stores process ID, state, registers, memory limits, scheduling info, etc.

Q2.
Process states include:
ANew, Ready, Running, Waiting, Terminated
BOnly Running and Waiting
CStart and End only
DActive and Inactive
Show Answer & Explanation

Correct Answer: A — New, Ready, Running, Waiting, Terminated

Five process states: New, Ready, Running, Waiting (Blocked), Terminated.

Q3.
fork() system call:
ATerminates process
BCreates new process
CSleeps process
DChanges priority
Show Answer & Explanation

Correct Answer: B — Creates new process

fork() creates a child process as copy of parent.

Q4.
Zombie process is:
ARunning process
BTerminated but entry in process table exists
CSleeping process
DNew process
Show Answer & Explanation

Correct Answer: B — Terminated but entry in process table exists

Zombie: process terminated but parent hasn't read its exit status.

Q5.
Orphan process is:
AProcess with no children
BChild whose parent terminated
CRoot process
DSystem process
Show Answer & Explanation

Correct Answer: B — Child whose parent terminated

Orphan process: child process whose parent has terminated.

Q6.
Thread shares with other threads:
AStack
BCode, data, files
CRegisters
DProgram counter
Show Answer & Explanation

Correct Answer: B — Code, data, files

Threads share code, data, and files; each has own stack and registers.

Q7.
Multiprocessing means:
AMultiple threads
BMultiple CPUs
CMultiple users
DMultiple files
Show Answer & Explanation

Correct Answer: B — Multiple CPUs

Multiprocessing uses multiple processors/CPUs.

Q8.
Mutex is:
AMultiple execution
BMutual exclusion lock
CMemory unit
DDisk type
Show Answer & Explanation

Correct Answer: B — Mutual exclusion lock

Mutex ensures mutual exclusion in critical sections.

Q9.
Critical section problem solution must satisfy:
AMutual exclusion, Progress, Bounded waiting
BOnly mutual exclusion
CSpeed only
DMemory only
Show Answer & Explanation

Correct Answer: A — Mutual exclusion, Progress, Bounded waiting

Three requirements: Mutual Exclusion, Progress, Bounded Waiting.

Q10.
Producer-Consumer problem uses:
AOnly mutex
BSemaphores (mutex + full + empty)
COnly variables
DNo synchronization
Show Answer & Explanation

Correct Answer: B — Semaphores (mutex + full + empty)

Uses mutex for critical section, full and empty semaphores for synchronization.

Q11.
Context switching involves:
AOnly saving PC
BSaving and restoring process state
COnly loading new process
DNo overhead
Show Answer & Explanation

Correct Answer: B — Saving and restoring process state

Context switching saves current process state and restores the state of another process.

Q12.
Preemptive scheduling means:
AProcess runs until completion
BOS can interrupt running process
CNo context switching
DOnly batch processing
Show Answer & Explanation

Correct Answer: B — OS can interrupt running process

Preemptive scheduling allows OS to interrupt a running process to run another.

Q13.
Non-preemptive scheduling means:
AOS can interrupt process anytime
BProcess runs until it voluntarily releases CPU
CFaster execution
DUses round robin
Show Answer & Explanation

Correct Answer: B — Process runs until it voluntarily releases CPU

In non-preemptive scheduling, a process runs until it completes or blocks voluntarily.

Q14.
Which is NOT a CPU scheduling algorithm?
AFCFS
BSJF
CLRU
DRound Robin
Show Answer & Explanation

Correct Answer: C — LRU

LRU (Least Recently Used) is a page replacement algorithm, not CPU scheduling.

Q15.
Convoy effect occurs in:
ASJF
BFCFS
CRound Robin
DPriority scheduling
Show Answer & Explanation

Correct Answer: B — FCFS

Convoy effect in FCFS: short processes wait behind long process.

Q16.
Starvation can occur in:
AFCFS
BSJF and Priority scheduling
CRound Robin only
DAll algorithms equally
Show Answer & Explanation

Correct Answer: B — SJF and Priority scheduling

Starvation can occur in SJF (long jobs) and Priority scheduling (low priority jobs).

Q17.
Aging is used to prevent:
ADeadlock
BStarvation
CThrashing
DFragmentation
Show Answer & Explanation

Correct Answer: B — Starvation

Aging gradually increases priority of waiting processes to prevent starvation.

Q18.
Inter-process communication (IPC) methods include:
AOnly shared memory
BOnly message passing
CShared memory and message passing
DOnly files
Show Answer & Explanation

Correct Answer: C — Shared memory and message passing

IPC methods include shared memory, message passing, pipes, and sockets.

Q19.
Which system call creates a new process in Unix?
Aexec()
Bfork()
Ccreate()
Dspawn()
Show Answer & Explanation

Correct Answer: B — fork()

fork() creates a new child process as a copy of the parent process.

Q20.
Process synchronization is needed because:
ATo speed up execution
BTo prevent race conditions
CTo save memory
DTo reduce CPU usage
Show Answer & Explanation

Correct Answer: B — To prevent race conditions

Synchronization prevents race conditions when multiple processes access shared resources.