Question Bank

1899 approved questions from the community

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

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

Why does the code `const someConst = x + y` fail when x and y are variables?

MEDIUM
SINGLE CHOICE
30s
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 the issue with converting integer 101 to string using `string(101)` in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is the idiomatic way to handle errors in Go?

MEDIUM
SINGLE CHOICE
35s
Go
by Mohamed

What is an interface in Go?

MEDIUM
SINGLE CHOICE
35s
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

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

Modifying slice elements using index notation in a function will modify the original slice.

MEDIUM
TRUE FALSE
25s
Go
by Mohamed

Which of the following are application layer protocols? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Network
by Mohamed

Which of the following are steps in the DHCP process? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Network
by Mohamed

What are ICMP used for? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Network
by Mohamed

What happens when you send a packet larger than the MTU with IPv4?

MEDIUM
SINGLE CHOICE
35s
Network
by Mohamed

What is SDN (Software-Defined Networking)?

MEDIUM
SINGLE CHOICE
35s
Network
by Mohamed

What is a VLAN?

MEDIUM
SINGLE CHOICE
35s
Network
by Mohamed

When performing a search query, what is more important: latency or throughput?

MEDIUM
SINGLE CHOICE
30s
Network
by Mohamed

What is the main difference between a hub and a switch?

MEDIUM
SINGLE CHOICE
35s
Network
by Mohamed

At which OSI layer does a router operate?

MEDIUM
SINGLE CHOICE
30s
Network
by Mohamed

What does ARP (Address Resolution Protocol) do?

MEDIUM
SINGLE CHOICE
35s
Network
by Mohamed
PreviousPage 25 of 95Next