...

/

Quiz: Goroutines and Interfaces

Quiz: Goroutines and Interfaces

Test your understanding of goroutines and interfaces in Go.

We'll cover the following...
1

What is the output of the following code?

package main

import (
	"fmt"
)

func main() {
	var i int
	defer fmt.Print(i)
	i = 1
	fmt.Print(i)
}
A)

0

B)

1

C)

10

D)

11

Question 1 of 140 attempted
Access this course and 1400+ top-rated courses and projects.