Advanced Go Concepts

Dive into interfaces,embedding,and reflection in Go.

1. Which keyword is used to launch a new goroutine in Go?
2. Which of the following are synchronization primitives provided by the sync package?
3. An empty interface (interface{}) in Go can hold values of any type.
4. What keyword ensures a function call executes when the surrounding function exits?
5. What happens when sending to a buffered channel that is full?
6. Which of the following are valid uses of the context package?
7. In Go, methods can only be defined on struct types.
8. What does the sync.WaitGroup struct primarily coordinate?
9. Name the statement used to handle multiple channel operations simultaneously.
10. Which statements about panic and recover are correct?
11. Type assertions in Go can convert an interface value to a concrete type.
12. What is the purpose of the 'reflect' package?
13. Which are characteristics of Go interfaces?
14. A goroutine is managed by the Go runtime, not the OS kernel.
15. What does the 'go.mod' file primarily define?
Answered 0 of 0 — 0 correct