Languages & Frameworks

Go

6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.

  • In Go, when would you reach for a channel versus a sync.Mutex to coordinate goroutines? Mid level
  • In Go, what's the difference between an array and a slice, and why do slices behave like references?Go Pro Junior level
  • What is a goroutine in Go, and how does it differ from an operating system thread?Go Pro Intern level
  • How does Go handle errors, and how do you add context to an error as it propagates up the call stack?Go Pro Mid level
  • In Go, what's the difference between an array and a slice, and what do length and capacity mean for a slice?Go Pro Intern level
  • Go returns errors as values instead of throwing exceptions. How does that idiom work, and what do you see as the trade-offs?Go Pro Junior level
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.