Quiz: Goroutines and Interfaces
Test your understanding of goroutines and interfaces in Go.
We'll cover the following...
We'll cover the following...
Technical Quiz
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
1 / 14
...