Go Language Fundamentals

Test your knowledge of Go syntax,variables,and control structures.

1. What is the file extension for Go source code files?
2. Which function serves as the entry point of a Go program?
3. Which operator is used for short variable declaration in Go?
4. What is the zero value for an uninitialized int variable in Go?
5. How is a package imported in Go?
6. What does the 'go' keyword do when preceding a function call?
7. Which built-in type represents an immutable sequence of bytes in Go?
8. What is the result of 7 / 3 in Go (integer division)?
9. Which keyword declares a constant in Go?
10. What is the purpose of the 'defer' statement?
11. Which of the following are basic (primitive) types in Go? (Select all that apply)
12. Which statements about Go interfaces are true? (Select all that apply)
13. Which are valid error handling practices in Go? (Select all that apply)
14. What are features of Go's concurrency model? (Select all that apply)
15. Go supports object-oriented programming with classes and inheritance.
16. Goroutines are managed by the Go runtime, not the operating system kernel.
17. A Go function can return multiple values.
18. What is the abbreviation for Go's official dependency management tool?
19. What keyword is used to exit a loop prematurely in Go?
20. Name the built-in function in Go that prints to standard output without appending a newline (not part of the fmt package).
Answered 0 of 0 — 0 correct