WGU D686 OPERATING SYSTEMS
FOR COMPUTER SCIENTISTS –
ORIGINAL PRACTICE EXAM
1. Which process state transition is possible only after an I/O event
completes?
A. Running → Ready
B. Running → Blocked
C. Blocked → Ready
D. Ready → Running
Correct ,,,answer,,,: C – A process in the Blocked (waiting) state is
suspended because it requested an I/O operation. Once that I/O
completes, the process transitions to Ready, where it waits for CPU time
again.
2. In a round-robin scheduler with a time quantum of 10 ms and a context-
switch time of 1 ms, what is the CPU efficiency?
A. 90%
B. 90.9%
C. 91%
D. 10%
Correct ,,,answer,,,: B – Efficiency = quantum / (quantum + switch time) =
10 ms / (10 ms + 1 ms) = 10/11 ≈ 0.909 = 90.9%.
,3. Which scheduling algorithm minimizes average waiting time when all
jobs are available simultaneously?
A. First-Come, First-Served (FCFS)
B. Shortest Job First (SJF)
C. Round-Robin (RR)
D. Priority scheduling
Correct ,,,answer,,,: B – SJF is provably optimal for minimizing average
waiting time under the assumption that all jobs are available at time zero.
4. What is the name of the process by which the CPU switches from one
process to another, saving the state of the old process and loading the
saved state for the new process?
A. Context switch
B. Mode switch
C. Dispatch latency
D. Process migration
Correct ,,,answer,,,: A – A context switch saves the PCB (program
counter, registers, etc.) of the current process and restores that of the
next process.
5. Which condition is NOT necessary for a deadlock to occur?
A. Mutual exclusion
B. Hold and wait
C. Circular wait
D. Preemption
Correct ,,,answer,,,: D – The four Coffman conditions are mutual
exclusion, hold and wait, no preemption, and circular wait. Preemption is
not a condition—deadlock requires that resources cannot be preempted.
, 6. What is a Process Control Block (PCB)?
A. A data structure containing information about an open file
B. A data structure containing information about a process (state, PC,
registers)
C. A hardware register for interrupt handling
D. A memory partition for kernel code
Correct ,,,answer,,,: B – The PCB stores all information needed to manage
a process, including process state, program counter, CPU registers, and
memory management information.
7. Which scheduling algorithm suffers from the "convoy effect"?
A. Round-Robin (RR)
B. Shortest Job First (SJF)
C. First-Come, First-Served (FCFS)
D. Multilevel feedback queue (MLFQ)
Correct ,,,answer,,,: C – In FCFS, one long CPU-bound process can hog
the CPU, causing many short I/O-bound processes to queue behind it.
8. What is a logic bomb?
A. Malware that spreads without user intervention
B. Malicious code that triggers a harmful action when specific
conditions are met
C. Software that encrypts files for ransom
D. A hidden authentication bypass
Correct ,,,answer,,,: B – A logic bomb lies dormant until a condition (e.g.,
date, user action) triggers its payload.
9. What is the difference between a virus and a worm?
A. Virus spreads through networks; worm requires user action
B. Virus attaches to files and needs user action; worm spreads
FOR COMPUTER SCIENTISTS –
ORIGINAL PRACTICE EXAM
1. Which process state transition is possible only after an I/O event
completes?
A. Running → Ready
B. Running → Blocked
C. Blocked → Ready
D. Ready → Running
Correct ,,,answer,,,: C – A process in the Blocked (waiting) state is
suspended because it requested an I/O operation. Once that I/O
completes, the process transitions to Ready, where it waits for CPU time
again.
2. In a round-robin scheduler with a time quantum of 10 ms and a context-
switch time of 1 ms, what is the CPU efficiency?
A. 90%
B. 90.9%
C. 91%
D. 10%
Correct ,,,answer,,,: B – Efficiency = quantum / (quantum + switch time) =
10 ms / (10 ms + 1 ms) = 10/11 ≈ 0.909 = 90.9%.
,3. Which scheduling algorithm minimizes average waiting time when all
jobs are available simultaneously?
A. First-Come, First-Served (FCFS)
B. Shortest Job First (SJF)
C. Round-Robin (RR)
D. Priority scheduling
Correct ,,,answer,,,: B – SJF is provably optimal for minimizing average
waiting time under the assumption that all jobs are available at time zero.
4. What is the name of the process by which the CPU switches from one
process to another, saving the state of the old process and loading the
saved state for the new process?
A. Context switch
B. Mode switch
C. Dispatch latency
D. Process migration
Correct ,,,answer,,,: A – A context switch saves the PCB (program
counter, registers, etc.) of the current process and restores that of the
next process.
5. Which condition is NOT necessary for a deadlock to occur?
A. Mutual exclusion
B. Hold and wait
C. Circular wait
D. Preemption
Correct ,,,answer,,,: D – The four Coffman conditions are mutual
exclusion, hold and wait, no preemption, and circular wait. Preemption is
not a condition—deadlock requires that resources cannot be preempted.
, 6. What is a Process Control Block (PCB)?
A. A data structure containing information about an open file
B. A data structure containing information about a process (state, PC,
registers)
C. A hardware register for interrupt handling
D. A memory partition for kernel code
Correct ,,,answer,,,: B – The PCB stores all information needed to manage
a process, including process state, program counter, CPU registers, and
memory management information.
7. Which scheduling algorithm suffers from the "convoy effect"?
A. Round-Robin (RR)
B. Shortest Job First (SJF)
C. First-Come, First-Served (FCFS)
D. Multilevel feedback queue (MLFQ)
Correct ,,,answer,,,: C – In FCFS, one long CPU-bound process can hog
the CPU, causing many short I/O-bound processes to queue behind it.
8. What is a logic bomb?
A. Malware that spreads without user intervention
B. Malicious code that triggers a harmful action when specific
conditions are met
C. Software that encrypts files for ransom
D. A hidden authentication bypass
Correct ,,,answer,,,: B – A logic bomb lies dormant until a condition (e.g.,
date, user action) triggers its payload.
9. What is the difference between a virus and a worm?
A. Virus spreads through networks; worm requires user action
B. Virus attaches to files and needs user action; worm spreads