Complete the code to declare an array of 5 integers in Go.
var numbers [1]In Go, arrays are declared with the size before the type, like [5]int.
Complete the code to initialize an array with values 1, 2, 3, 4, 5.
numbers := [1]To initialize an array with values in Go, use the syntax [size]type{values}.
Fix the error in the array declaration to declare an array of 3 strings.
var fruits [1] = {"apple", "banana", "cherry"}
The correct array declaration in Go uses [3]string with size before type.
Fill both blanks to declare and initialize an array of 4 floats with values 1.1, 2.2, 3.3, 4.4.
var decimals [1] = [2]
The declaration uses [4]float64 and initialization uses [4]float64{...}.
Fill all three blanks to declare an array of 3 booleans and initialize it with true, false, true.
var flags [1] = [2] flags[[3]] = false
The array is declared as [3]bool, initialized with [3]bool{true, false, true}, and index 1 is updated to false.
