Patterns interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Immutability?

Mid
  1. A.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  2. B.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  3. C.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
  4. 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
  1. A.Thread-local storage
  2. B.Immutability
  3. C.Thread confinement
  4. D.Double-checked locking

Answer + AI explanation with Pro

3. Which statement is correct?

Mid
  1. A.Immutability — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  2. B.Immutability — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  3. C.Immutability — a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
  4. 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
  1. A.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
  2. B.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  3. C.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  4. 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
  1. A.Immutability
  2. B.Double-checked locking
  3. C.Thread confinement
  4. D.Thread-local storage

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Thread confinement — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  2. B.Thread confinement — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  3. C.Thread confinement — an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  4. 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
  1. A.a facility giving each thread its own private copy of a variable, eliminating sharing-related contention for per-thread data
  2. B.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  3. C.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  4. 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
  1. A.Thread-local storage
  2. B.Thread confinement
  3. C.Immutability
  4. D.Double-checked locking

Answer + AI explanation with Pro

9. Which statement is correct?

Senior
  1. A.Double-checked locking — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  2. B.Double-checked locking — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  3. 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
  4. 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
  1. A.designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  2. B.an optimization that tests a condition before and after acquiring a lock to avoid synchronization on the common already-initialized path
  3. C.restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  4. 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
  1. A.Double-checked locking
  2. B.Thread-local storage
  3. C.Immutability
  4. D.Thread confinement

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Thread-local storage — designing objects so their state never changes after construction, making them inherently safe to share across threads without locks
  2. 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
  3. C.Thread-local storage — restricting access to an object to a single thread so it needs no synchronization because nothing else can touch it
  4. 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.

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