Real Interview Questions for the Software Engineer at Kaspersky
NewPractice MCQs
Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A Go service starts `go func() { panic("boom") }()` with no `recover` in that goroutine, while `main` loops handling requests. What happens to the process?
Answer to see the discussion.
MCQ-2A Go service inserts keys `alpha`, `beta`, `gamma` into a map in that order and ranges over it to emit a config file, but the output order changes between runs. What order does Go guarantee for that traversal?
Answer to see the discussion.
MCQ-3A Go service runs four workers that send results on a channel, wait for completion with `sync.WaitGroup`, guard a shared counter with `sync.Mutex`, and store a `sync.Cond` in its config struct without ever calling `Wait` or `Signal` on it. Which primitives synchronize goroutines in this service?
Answer to see the discussion.
Curated: · Written: · Reviewed: