18 Hazards questions from the Concurrency bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
C.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
D.a state in which two or more tasks are each blocked forever, every one waiting on a resource held by another in the group
Answer + AI explanation with Pro
2. Which term means: "a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state"?
Junior
A.Livelock
B.Starvation
C.Race condition
D.Coffman conditions
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Race condition — a state in which two or more tasks are each blocked forever, every one waiting on a resource held by another in the group
B.Race condition — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
C.Race condition — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
D.Race condition — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Answer + AI explanation with Pro
4. What is Deadlock?
Junior
A.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
B.a state in which two or more tasks are each blocked forever, every one waiting on a resource held by another in the group
C.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
D.the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
Answer + AI explanation with Pro
5. Which term means: "a state in which two or more tasks are each blocked forever, every one waiting on a resource held by another in the group"?
Junior
A.Lock ordering
B.Coffman conditions
C.Livelock
D.Deadlock
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Deadlock — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
B.Deadlock — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
C.Deadlock — a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
D.Deadlock — a state in which two or more tasks are each blocked forever, every one waiting on a resource held by another in the group
Answer + AI explanation with Pro
7. What is Livelock?
Mid
A.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
B.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
C.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
D.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
Answer + AI explanation with Pro
8. Which term means: "a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked"?
Mid
A.Starvation
B.Coffman conditions
C.Livelock
D.Deadlock
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Livelock — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
B.Livelock — a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
C.Livelock — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
D.Livelock — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
Answer + AI explanation with Pro
10. What is Starvation?
Mid
A.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
C.the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
D.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
Answer + AI explanation with Pro
11. Which term means: "a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy"?
Mid
A.Lock ordering
B.Race condition
C.Starvation
D.Coffman conditions
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Starvation — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
B.Starvation — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
C.Starvation — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
D.Starvation — a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
Answer + AI explanation with Pro
13. What is Coffman conditions?
Senior
A.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
C.the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
D.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Answer + AI explanation with Pro
14. Which term means: "the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters"?
Senior
A.Lock ordering
B.Starvation
C.Deadlock
D.Coffman conditions
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Coffman conditions — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
B.Coffman conditions — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
C.Coffman conditions — a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
D.Coffman conditions — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
Answer + AI explanation with Pro
16. What is Lock ordering?
Senior
A.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
B.the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
C.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
D.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Answer + AI explanation with Pro
17. Which term means: "the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement"?
Senior
A.Livelock
B.Race condition
C.Starvation
D.Lock ordering
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.Lock ordering — the four requirements that must all hold for a circular wait failure: mutual exclusion, hold-and-wait, no preemption, and a cycle of waiters
B.Lock ordering — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
C.Lock ordering — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
D.Lock ordering — a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Hazards question come with Pro.