Goroutines & Concurrency interview questions

15 Goroutines & Concurrency questions from the Go 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 Goroutine?

Junior
  1. A.a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  2. B.the setting that limits how many operating-system threads may execute user code simultaneously
  3. C.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  4. D.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added

Answer + AI explanation with Pro

2. Which term means: "a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime"?

Junior
  1. A.GOMAXPROCS
  2. B.WaitGroup
  3. C.Goroutine
  4. D.Loop variable capture (pre-1.22)

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Goroutine — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  2. B.Goroutine — the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  3. C.Goroutine — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
  4. D.Goroutine — the setting that limits how many operating-system threads may execute user code simultaneously

Answer + AI explanation with Pro

4. What is GOMAXPROCS?

Mid
  1. A.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  2. B.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  3. C.a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
  4. D.the setting that limits how many operating-system threads may execute user code simultaneously

Answer + AI explanation with Pro

5. Which term means: "the setting that limits how many operating-system threads may execute user code simultaneously"?

Mid
  1. A.WaitGroup
  2. B.Work-stealing scheduler
  3. C.Loop variable capture (pre-1.22)
  4. D.GOMAXPROCS

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.GOMAXPROCS — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
  2. B.GOMAXPROCS — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  3. C.GOMAXPROCS — the setting that limits how many operating-system threads may execute user code simultaneously
  4. D.GOMAXPROCS — the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added

Answer + AI explanation with Pro

7. What is Work-stealing scheduler?

Senior
  1. A.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  2. B.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  3. C.the setting that limits how many operating-system threads may execute user code simultaneously
  4. D.a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished

Answer + AI explanation with Pro

8. Which term means: "the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle"?

Senior
  1. A.GOMAXPROCS
  2. B.Work-stealing scheduler
  3. C.Goroutine
  4. D.WaitGroup

Answer + AI explanation with Pro

9. Which statement is correct?

Senior
  1. A.Work-stealing scheduler — the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  2. B.Work-stealing scheduler — the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  3. C.Work-stealing scheduler — the setting that limits how many operating-system threads may execute user code simultaneously
  4. D.Work-stealing scheduler — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime

Answer + AI explanation with Pro

10. What is WaitGroup?

Mid
  1. A.the setting that limits how many operating-system threads may execute user code simultaneously
  2. B.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  3. C.a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  4. D.a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished

Answer + AI explanation with Pro

11. Which term means: "a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished"?

Mid
  1. A.Work-stealing scheduler
  2. B.Loop variable capture (pre-1.22)
  3. C.Goroutine
  4. D.WaitGroup

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.WaitGroup — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  2. B.WaitGroup — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
  3. C.WaitGroup — the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  4. D.WaitGroup — the setting that limits how many operating-system threads may execute user code simultaneously

Answer + AI explanation with Pro

13. What is Loop variable capture (pre-1.22)?

Senior
  1. A.the setting that limits how many operating-system threads may execute user code simultaneously
  2. B.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  3. C.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
  4. D.a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished

Answer + AI explanation with Pro

14. Which term means: "the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added"?

Senior
  1. A.Goroutine
  2. B.Loop variable capture (pre-1.22)
  3. C.GOMAXPROCS
  4. D.WaitGroup

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Loop variable capture (pre-1.22) — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
  2. B.Loop variable capture (pre-1.22) — the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
  3. C.Loop variable capture (pre-1.22) — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
  4. D.Loop variable capture (pre-1.22) — the setting that limits how many operating-system threads may execute user code simultaneously

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 Goroutines & Concurrency 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