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/12Score 0

What does a Go module manifest live in?

In this round
  1. What does a Go module manifest live in?
  2. Which built-in adds an element to a slice?
  3. What does this compute: `len([]int{1, 2, 3, 4})`?
  4. What does `defer file.Close()` placed right after `file, _ := os.Open(...)` do?
  5. What does `defer` do?
  6. What is the zero value of a `bool`?
  7. How do you pause until a channel receives a value?
  8. Which built-in returns the capacity (not length) of a slice?
  9. What does the `:=` blank identifier `_` do?
  10. What does `nil` represent in Go?
  11. What does this print: `s := "héllo"; fmt.Println(len(s))`?
  12. Which short-variable-declaration form is valid only inside a function?
Gaps to close?
Read the curated Go notes — core concepts, patterns, interview prep.
Go notes

More quizzes

AccessibilityAlgorithmsAngularApache KafkaAWSBootstrap