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.
A.a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
B.the setting that limits how many operating-system threads may execute user code simultaneously
C.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
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
A.GOMAXPROCS
B.WaitGroup
C.Goroutine
D.Loop variable capture (pre-1.22)
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Goroutine — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
B.Goroutine — the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
C.Goroutine — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
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
A.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
B.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
C.a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
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
A.WaitGroup
B.Work-stealing scheduler
C.Loop variable capture (pre-1.22)
D.GOMAXPROCS
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.GOMAXPROCS — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
B.GOMAXPROCS — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
C.GOMAXPROCS — the setting that limits how many operating-system threads may execute user code simultaneously
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
A.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
B.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
C.the setting that limits how many operating-system threads may execute user code simultaneously
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
A.GOMAXPROCS
B.Work-stealing scheduler
C.Goroutine
D.WaitGroup
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
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
B.Work-stealing scheduler — the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
C.Work-stealing scheduler — the setting that limits how many operating-system threads may execute user code simultaneously
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
A.the setting that limits how many operating-system threads may execute user code simultaneously
B.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
C.a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
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
A.Work-stealing scheduler
B.Loop variable capture (pre-1.22)
C.Goroutine
D.WaitGroup
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.WaitGroup — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
B.WaitGroup — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
C.WaitGroup — the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
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
A.the setting that limits how many operating-system threads may execute user code simultaneously
B.the classic bug where goroutines in a range loop all observed the same shared iteration variable before per-iteration scoping was added
C.the runtime component that maps goroutines onto threads using per-processor run queues that steal tasks when idle
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
A.Goroutine
B.Loop variable capture (pre-1.22)
C.GOMAXPROCS
D.WaitGroup
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Loop variable capture (pre-1.22) — a lightweight function execution started with the go keyword and multiplexed onto OS threads by the runtime
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
C.Loop variable capture (pre-1.22) — a sync counter whose Add, Done and Wait methods block until a set of goroutines has finished
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.