Quizzes

Go quizzes

Choose a quiz and test your understanding of a focused concept.

Efficient String Concatenation in Go Quiz: strings.Builder, bytes.Buffer, and Best Practices

Test your Go knowledge on efficient string concatenation with strings.Builder, bytes.Buffer, Join, Grow, and common pitfalls.

Go append Slice Concatenation Quiz: Using append and ... Correctly

Test your understanding of concatenating slices in Go with append, variadic expansion, common mistakes, and real-world usage.

Go foreach Loop Quiz: Master for range Iteration in Go

Test your understanding of Go's foreach-style iteration with `for range`, including slices, indexes, values, mistakes, and idiomatic usage.

Go int to String Quiz: Correct Decimal Conversion with strconv.Itoa

Test your understanding of converting int to string in Go using strconv.Itoa, FormatInt, and avoiding string(i) mistakes.

How to Check If a File Exists in Go: Idiomatic os.Stat Quiz

Test your understanding of checking file existence in Go with os.Stat, errors.Is, symlink behavior, and common mistakes.

How to Check if a Map Contains a Key in Go Quiz

Learn idiomatic Go map key checks with comma-ok, zero values, nil maps, and membership patterns in this practical quiz.

How to Print Struct Variables in Go Quiz

Test your understanding of printing Go struct fields and full structs using fmt, formatting verbs, and common debugging mistakes.

How to Write Multiline Strings in Go Quiz

Test your understanding of multiline strings in Go, including raw vs interpreted literals, escapes, common mistakes, and real use cases.

Idiomatic Go Enums Quiz: Modeling DNA Bases with Custom Types and Constants

Test your understanding of idiomatic enum-like patterns in Go using custom types, constants, String methods, and validation.

Optional Parameters in Go Quiz: Overloading Alternatives and Idiomatic Patterns

Test your understanding of optional parameters in Go, exact function signatures, and idiomatic alternatives like variadic args and config structs.