Go (Coding) Quiz
Go language fundamentals — goroutines, channels, and the simplicity-first idioms Go is built around.
This category currently has 101 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
Which keyword starts a goroutine?
- thread
- spawn
- fork
- async
- go
How do you declare a buffered channel of int with capacity 5?
- chan int{5}
- new(chan int, 5)
- make(channel int, 5)
- channel.New(int, 5)
- make(chan int, 5)
Which built-in function closes a channel?
- ch.Close()
- close(ch)
- shutdown(ch)
- end(ch)
- delete(ch)
What does the := operator do in Go?
- Reassigns without declaring
- Defines a constant
- Short variable declaration with type inference
- Pointer dereference
- Compares values for equality
Which package provides synchronization primitives like Mutex and WaitGroup?
- parallel
- sync
- lock
- thread
- concurrent
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.