...

/

Quiz on Go Variables

Quiz on Go Variables

A quick quiz to test understanding of this chapter!

We'll cover the following...
Technical Quiz
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

1 / 5