Quiz: Data Types
Test your understanding of data types in Go.
1
What will be the output of the following code?
package main
var unusedGlobal int
func main() {
}
A)
This code will not compile because there is an unused variable.
B)
This code will compile successfully.
C)
Syntax error.
D)
Both A & C.
Question 1 of 110 attempted
Get hands-on with 1200+ tech skills courses.