Skip to Content
Skip to content
Go for Beginners: Write Reliable Programs and Small Services
Beginner
Courses
Go for Beginners: Write Reliable Programs and Small Services

Check Yourself

Five scenario questions on zero values, short variable declarations, range loops, and multiple return values.

Course content

Sign in to save your progress.

Course Home
1. You declare `var active bool` and `var count int` inside a function without assigning values. What do they hold?
3. You write `for item := range items { fmt.Println(item) }` on a slice of strings `items := []string{"a", "b"}`. What prints?
5. A helper function `parsePort(raw string) (int, error)` rejects an out-of-range port. What is the idiomatic return?

About

Five scenario questions on zero values, short variable declarations, range loops, and multiple return values.

Duration
5 min
Last update
11/27/2026
Was this helpful?
​ 0 ​ 0

Comments

Sign in to comment

No comments yet.