Quiz 2
1. What is the main advantage of Goroutines over OS threads?
2. What is a 'buffered' channel?
3. What values does 'range' return when used on a map?
4. How does Go handle inheritance?
5. Can a 'const' be updated after declaration?
6. How do you export a function from a package?
7. What is the purpose of the 'init' function?
8. What is a closure in Go?
9. How do you define a variadic function?
10. What does 'cap()' return for a slice?
Previous Next