Quiz: Deduce the Outputs
In this lesson, your concepts will be evaluated through a quiz.
We'll cover the following...
We'll cover the following...
Choose one correct answer
1.
Deduce the output of the following program.
package main
var a = "G"
func main() {
n()
m()
n()
}
func n() { print(a) }
func m() {
a := "O"
print(a)
}
A.
OGO
B.
GOG
C.
GOO
D.
OGG
1 / 3
We hope that ...