12 Patterns 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.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
B.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
C.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
D.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
Answer + AI explanation with Pro
2. Which term means: "designing objects so their state never changes after construction, making them inherently safe to share across threads without locks"?
Mid
A.Thread-local storage
B.Immutability
C.Thread confinement
D.Double-checked locking
Answer + AI explanation with Pro
3. Which statement is correct?
Mid
A.Immutability — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
B.Immutability — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
C.Immutability — a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
D.Immutability — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
Answer + AI explanation with Pro
4. What is Thread confinement?
Mid
A.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
B.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
C.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
D.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
Answer + AI explanation with Pro
5. Which term means: "restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it"?
Mid
A.Immutability
B.Double-checked locking
C.Thread confinement
D.Thread-local storage
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Thread confinement — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
B.Thread confinement — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
C.Thread confinement — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
D.Thread confinement — a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
Answer + AI explanation with Pro
7. What is Double-checked locking?
Senior
A.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
B.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
C.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
D.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
Answer + AI explanation with Pro
8. Which term means: "an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path"?
Senior
A.Thread-local storage
B.Thread confinement
C.Immutability
D.Double-checked locking
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.Double-checked locking — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
B.Double-checked locking — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
C.Double-checked locking — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
D.Double-checked locking — a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
Answer + AI explanation with Pro
10. What is Thread-local storage?
Mid
A.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
B.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
C.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
D.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
Answer + AI explanation with Pro
11. Which term means: "a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data"?
Mid
A.Double-checked locking
B.Thread-local storage
C.Immutability
D.Thread confinement
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Thread-local storage — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
B.Thread-local storage — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
C.Thread-local storage — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
D.Thread-local storage — a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
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 Patterns question come with Pro.