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 pause until a channel receives a value?

Questions in this quiz
  1. How do you pause until a channel receives a value?
  2. How are exported identifiers marked in Go?
  3. Which built-in adds an element to a slice?
  4. How do you check whether a key exists in a map?
  5. What is the zero value of a `bool`?
  6. What is the difference between an array and a slice in Go?
  7. What does `defer file.Close()` placed right after `file, _ := os.Open(...)` do?
  8. What does this print: `s := "héllo"; fmt.Println(len(s))`?
  9. Which built-in returns the capacity (not length) of a slice?
  10. Which idiomatic pattern returns errors from a function?
  11. What does the `:=` blank identifier `_` do?
  12. What does this compute: `len([]int{1, 2, 3, 4})`?
Gaps to close?
Read the curated Go notes — core concepts, patterns, interview prep.
Go notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web