Skip to content

Quiz · Go

Go Code Output Quiz: Predict the Result

Go output questions: predict what Go prints, from shared slice arrays, len and cap, range and defer to runes, value receivers, closures and shadowing.

Questions
15
Difficulty
Medium
Time
~10min
Per question
20sec

What it covers

Go

A topic in Programming & Coding.

Go (Golang) quizzes on variables, slices and maps, predicting Go code output, and structs, interfaces, error handling, goroutines and channels.

Before you start

How it works

  1. 1

    The clock

    You have 20 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of Go

Programming & Coding · Go

Go Basics Quiz: Variables, Types & Functions

A Golang quiz for beginners: := and zero values, package main, func, multiple return values, the for loop, exported names, slices, maps and iota.

Easy difficulty15 questions~8 min
+75 XPPlay