Go Beginner Quiz
Master Go basics including syntax, data types, functions, packages, and error handling
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is Go (Golang)?
- A game
- A database
- An open-source programming language created by Google
- A web framework
Show answer
Answer: An open-source programming language created by Google. Go (or Golang) is an open-source, statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson.
2. Which command compiles and runs a Go program?
- go compile
- go run
- go execute
- go build
Show answer
Answer: go run. `go run` compiles and runs the Go program in one step. `go build` compiles the program and creates an executable binary.
3. What is the correct package declaration for a main program?
- main package
- package main
- package go
- program main
Show answer
Answer: package main. Every Go program that produces an executable must declare `package main` at the top. The main package is special - it defines a standalone executable.
Frequently asked questions
How many questions are in this Go quiz?+
30 questions, with a 45-minute time limit. Every question includes a written explanation of the correct answer.
Is this Go quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the beginner quiz aimed at?+
Master Go basics including syntax, data types, functions, packages, and error handling
Can I use this to prepare for a Go interview?+
Yes. The questions cover the topics that come up in Go technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Go?
30 questions, 45 minutes. Free, no sign-up.
Start now