Quiz: Memory and Time

Test your understanding of memory and time in Go.

1

Which of the following statements is correct?

A)

You should always pass structs by reference in Go because otherwise they will be copied in memory which is slow.

B)

You should always pass structs by value in Go, because that does not involve heap or garbage collector.

C)

It depends on the code.

D)

None of the above.

Question 1 of 30 attempted

Get hands-on with 1200+ tech skills courses.