Quiz: Deduce the Outputs
Evaluate your grasp of Go's fundamental data types and basic constructs by deducing program outputs in this quiz. This lesson helps reinforce your foundational skills ahead of learning control structures.
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 ...