0
0
Operating Systemsknowledge~20 mins

Process states (new, ready, running, waiting, terminated) in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Process States Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the 'Ready' state in process management

Which of the following best describes the Ready state of a process in an operating system?

AThe process is prepared to run and waiting for CPU allocation.
BThe process has finished execution and is terminated.
CThe process is waiting for an I/O operation to complete.
DThe process is currently executing instructions on the CPU.
Attempts:
2 left
💡 Hint

Think about when a process is ready but not yet running.

📋 Factual
intermediate
2:00remaining
Identifying the 'Waiting' state cause

What causes a process to enter the Waiting state?

AThe process is waiting for an event like I/O completion or a signal.
BThe process is waiting for CPU time to start running.
CThe process has completed execution and is cleaning up resources.
DThe process is being created and initialized.
Attempts:
2 left
💡 Hint

Consider what happens when a process cannot continue until something external finishes.

🔍 Analysis
advanced
2:30remaining
Sequence of process states during execution

Consider a process that is created, runs, waits for I/O, then finishes. Which sequence of states correctly represents this process lifecycle?

ANew → Waiting → Ready → Running → Terminated
BNew → Ready → Running → Waiting → Ready → Running → Terminated
CNew → Running → Ready → Waiting → Running → Terminated
DNew → Ready → Waiting → Running → Terminated
Attempts:
2 left
💡 Hint

Think about the order a process moves through states when it pauses for I/O and resumes.

Comparison
advanced
2:00remaining
Difference between 'New' and 'Terminated' states

Which statement correctly compares the New and Terminated states of a process?

ANew means the process is waiting for I/O; Terminated means it is running.
BNew means the process is finished; Terminated means it is just created.
CBoth New and Terminated mean the process is waiting for CPU time.
DNew means the process is being created; Terminated means the process has finished execution.
Attempts:
2 left
💡 Hint

Think about the start and end points of a process lifecycle.

Reasoning
expert
3:00remaining
Why a process cannot move directly from 'Waiting' to 'Running'

Why does a process typically not move directly from the Waiting state to the Running state?

ABecause the process moves directly from New to Running, skipping Waiting.
BBecause the process must first be terminated before running again.
CBecause the process must return to the Ready state to wait for CPU scheduling.
DBecause the process is deleted after waiting and cannot run again.
Attempts:
2 left
💡 Hint

Consider how the CPU scheduler decides which process runs next.