Question Bank

3705 approved questions from the community

What is a goroutine in Go?

EASY
SINGLE CHOICE
30s
Go
by Mohamed

What package is commonly used for formatted I/O in Go?

EASY
SINGLE CHOICE
25s
Go
by Mohamed

What data structure does Go's `container/heap` package implement?

MEDIUM
SINGLE CHOICE
30s
Go
by Mohamed

What is the purpose of the `defer` keyword in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is `sync.WaitGroup` used for in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

When passing a slice to a function and using `append()`, why doesn't the original slice get modified?

HARD
SINGLE CHOICE
40s
Go
by Mohamed

How do you create a channel in Go?

MEDIUM
SINGLE CHOICE
30s
Go
by Mohamed

What is the output when `iota` is used with `_ = iota + 3` followed by `x` in a const block?

HARD
SINGLE CHOICE
35s
Go
by Mohamed

What is the difference between buffered and unbuffered channels in Go?

HARD
SINGLE CHOICE
40s
Go
by Mohamed

What is the blank identifier `_` used for in Go?

EASY
SINGLE CHOICE
30s
Go
by Mohamed

Which of the following are characteristics of the Go programming language? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Go
by Mohamed

Which of the following are valid ways to iterate over a slice in Go? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Go
by Mohamed

Which of the following are benefits of compiling Go to a standalone binary? (Select all that apply)

HARD
MULTIPLE CHOICE
45s
Go
by Mohamed

In Go, interface implementation is implicit - a type implements an interface by implementing its methods without explicit declaration.

MEDIUM
TRUE FALSE
30s
Go
by Mohamed

What is the idiomatic way to handle errors in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is the difference between `var x int = 2` and `x := 2` in Go?

EASY
SINGLE CHOICE
30s
Go
by Mohamed

What is a pointer in Go?

EASY
SINGLE CHOICE
30s
Go
by Mohamed

What is the issue with converting integer 101 to string using `string(101)` in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is an interface in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is the zero value of a pointer in Go?

EASY
SINGLE CHOICE
25s
Go
by Mohamed
PreviousPage 50 of 186Next