Hazards interview questions

18 real Hazards questions from the Concurrency bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Race condition?

Junior
  1. 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
  2. B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  3. C.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
  4. 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
Reveal the answer + AI explanation — free account

2. Which term means: "a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state"?

Junior
  1. A.Livelock
  2. B.Starvation
  3. C.Race condition
  4. D.Coffman conditions
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. 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
  2. B.Race condition — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  3. 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
  4. D.Race condition — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Reveal the answer + AI explanation — free account

4. What is Deadlock?

Junior
  1. A.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  2. 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
  3. C.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  4. 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
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Deadlock — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  2. 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
  3. 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
  4. 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
Reveal the answer + AI explanation — free account

7. What is Livelock?

Mid
  1. A.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
  2. B.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  3. C.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
  4. D.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Livelock — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  2. 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
  3. C.Livelock — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
  4. 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
Reveal the answer + AI explanation — free account

10. What is Starvation?

Mid
  1. A.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  2. B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  3. 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
  4. D.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
Reveal the answer + AI explanation — free account

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
  1. A.Lock ordering
  2. B.Race condition
  3. C.Starvation
  4. D.Coffman conditions
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Starvation — a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  2. 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
  3. C.Starvation — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
  4. 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
Reveal the answer + AI explanation — free account

13. What is Coffman conditions?

Senior
  1. A.a situation where tasks keep changing state in response to each other yet make no useful progress, despite never being blocked
  2. B.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  3. 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
  4. D.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Reveal the answer + AI explanation — free account

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
  1. A.Lock ordering
  2. B.Starvation
  3. C.Deadlock
  4. D.Coffman conditions
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Coffman conditions — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
  2. 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
  3. 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
  4. D.Coffman conditions — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
Reveal the answer + AI explanation — free account

16. What is Lock ordering?

Senior
  1. A.a condition where a task is perpetually denied the resources it needs because others are continually favored by the scheduler or locking policy
  2. 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
  3. C.a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  4. D.the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
Reveal the answer + AI explanation — free account

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
  1. A.Livelock
  2. B.Race condition
  3. C.Starvation
  4. D.Lock ordering
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. 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
  2. B.Lock ordering — the prevention technique of always acquiring multiple locks in a single globally agreed sequence to break the circular-wait requirement
  3. C.Lock ordering — a defect where program correctness depends on the unpredictable interleaving or relative timing of operations on shared state
  4. 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
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Hazards free