All quizzes
Free quiz · 50 questions in the bank

Go quiz

Test your Go knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

Which idiomatic pattern returns errors from a function?

Questions in this quiz
  1. Which idiomatic pattern returns errors from a function?
  2. What does this compute: `len([]int{1, 2, 3, 4})`?
  3. What is an interface in Go?
  4. What does a Go module manifest live in?
  5. How are exported identifiers marked in Go?
  6. Which built-in returns the capacity (not length) of a slice?
  7. What is a goroutine?
  8. What does `defer file.Close()` placed right after `file, _ := os.Open(...)` do?
  9. What does the `:=` blank identifier `_` do?
  10. How do you pause until a channel receives a value?
  11. What does `defer` do?
  12. What is the difference between an array and a slice in Go?
Gaps to close?
Read the curated Go notes — core concepts, patterns, interview prep.
Go notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web