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