Go (Coding) Quiz
Go fundamentals: goroutines, channels, and the language's simplicity-first design.
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?
- spawn
- async
- go
- thread
- fork
How do you declare a buffered channel of int with capacity 5?
- channel.New(int, 5)
- make(chan int, 5)
- new(chan int, 5)
- chan int{5}
- make(channel int, 5)
Which built-in function closes a channel?
- ch.Close()
- delete(ch)
- end(ch)
- shutdown(ch)
- close(ch)
What does the := operator do in Go?
- Compares values for equality
- Short variable declaration with type inference
- Defines a constant
- Pointer dereference
- Reassigns without declaring
Which package provides synchronization primitives like Mutex and WaitGroup?
- concurrent
- parallel
- thread
- lock
- sync
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.