WorksheetsGolang Basics
Total questions: 10
Worksheet time: 5mins
Go Created by
None
Operators Used In Golang
...
&&
//
*
Not Used Variable can be ignored using
(a)
Is 'nil' an identifier in golang?
not true
not false
not not true
not not not not false
const (
u = iota * 42
v float64 = iota * 42
w = iota * 42
) , wt is the value of v ?
(a)
How can the value of a pointer variable (var a *string) accessed ?
a
*a
&a
None
Array & Slice Valid Difference ?
A slice type has no specified length
Arrays are passed by reference Where as Slice are passed by Value
Arrays are collection of elements of the same type. A slice in Go is a convenient wrapper on top of array
None are true
Valid Literal Integer ?
4_2
4__2
0x6
.25
Print the length of the String 's'. Write the full statement
(a)
Go is OpenSource
true
false
maybe
None
