15 real Atomicity & Memory 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 Atomic operation?
Junior
A.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
C.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
D.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
2. Which term means: "an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial"?
A.Atomic operation — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
B.Atomic operation — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
C.Atomic operation — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
D.Atomic operation — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
A.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
C.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
D.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
A.Memory barrier — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
B.Memory barrier — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
C.Memory barrier — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
D.Memory barrier — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
A.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
B.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
C.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
D.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
8. Which term means: "the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache"?
A.Visibility — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
B.Visibility — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
C.Visibility — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
D.Visibility — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
A.the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
B.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
C.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
D.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
11. Which term means: "the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second"?
A.Happens-before — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
B.Happens-before — an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
C.Happens-before — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
D.Happens-before — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
A.an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
B.an instruction that forbids the compiler and hardware from reordering memory accesses across it, enforcing an ordering point
C.the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
D.a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
14. Which term means: "a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates"?
A.Volatile — a variable qualifier ensuring every access touches main memory and is not cached or reordered, used for visibility rather than atomicity of compound updates
B.Volatile — an action that completes indivisibly as a single step, so other threads observe it as either fully done or not started, never partial
C.Volatile — the partial ordering guarantee that if one action precedes another in this relation, the first's effects are visible to the second
D.Volatile — the guarantee that a write performed by one thread becomes observable to other threads rather than lingering in a private cache
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.