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

How do you check whether a key exists in a map?

Questions in this quiz
  1. How do you check whether a key exists in a map?
  2. What is a goroutine?
  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. How do you pause until a channel receives a value?
  6. What does this print: `s := "héllo"; fmt.Println(len(s))`?
  7. What is an interface in Go?
  8. How do you iterate over a slice with index and value?
  9. Which short-variable-declaration form is valid only inside a function?
  10. What is the zero value of a `bool`?
  11. How are exported identifiers marked in Go?
  12. What does the `:=` blank identifier `_` do?
Gaps to close?
Read the curated Go notes — core concepts, patterns, interview prep.
Go notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web