Go Intermediate Quiz
Explore goroutines, channels, interfaces, testing, and concurrency patterns
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is a goroutine?
- Started with go keyword
- A lightweight thread managed by Go runtime
- A function that runs concurrently
- All of the above
Show answer
Answer: All of the above. A goroutine is a lightweight thread managed by the Go runtime. Start with `go functionName()`. Goroutines are much cheaper than OS threads.
2. What is a channel in Go?
- Typed conduit for sending and receiving values
- All of the above
- Communication mechanism between goroutines
- Created with make()
Show answer
Answer: All of the above. Channels are typed conduits for communication between goroutines. Created with make: `ch := make(chan int)`. Send with `ch <- value`, receive with `value := <-ch`.
3. What is a buffered channel?
- All of the above
- Blocks only when buffer is full
- Created with make(chan type, capacity)
- Channel with capacity
Show answer
Answer: All of the above. Buffered channels have a capacity: `make(chan int, 100)`. Sends block only when buffer is full, receives block when empty.
Frequently asked questions
How many questions are in this Go quiz?+
30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.
Is this Go quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the intermediate quiz aimed at?+
Explore goroutines, channels, interfaces, testing, and concurrency patterns
Can I use this to prepare for a Go interview?+
Yes. The questions cover the topics that come up in Go technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Go?
30 questions, 60 minutes. Free, no sign-up.
Start now