Quiz

Do you know your stack from your heap?

Question 1

What is the printed output of the following code?

Question 2

True or false:

String slices are stored on the heap.

Question 3

Will the following code compile?

Question 4

Consider the following code:

What is the type of arr?

Question 5

Why does the following code refuse to compile?