How Well Do You Know Golang?
waywardfriar
Created 6/19/2024
Put your Golang knowledge to the test with this quiz and see how many correct answers you can get out of 5.
1. What is the entry point of a Go program?
func main()
package main
init()
program entry()
2. Which keyword is used to declare a package in Go?
package
import
module
declare
3. How do you import a package in Go?
4. Which of the following is the correct way to declare a variable in Go?
var x int
int x
declare x int
x: int
5. What is the command to build a Go project?
go run
go build
go compile
go make