Quiz on Go Variables

A quick quiz to test understanding of this chapter!

1

Which of the following is NOT a correct way to declare a variable in Go?

A)
var (
			name string
      age  int
      location string
)
B)
var (
			name, location string
      age int
)
      
C)
var string name
var int age
var string location
D)
var name string
var age int
var location string
Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.