Hazards interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.Livelock
  2. B.Starvation
  3. C.Race condition
  4. D.Coffman conditions

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Lock ordering
  2. B.Coffman conditions
  3. C.Livelock
  4. D.Deadlock

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Starvation
  2. B.Coffman conditions
  3. C.Livelock
  4. D.Deadlock

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Lock ordering
  2. B.Race condition
  3. C.Starvation
  4. D.Coffman conditions

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Lock ordering
  2. B.Starvation
  3. C.Deadlock
  4. D.Coffman conditions

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Livelock
  2. B.Race condition
  3. C.Starvation
  4. D.Lock ordering

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers