DataTypes Flashcards
1
Q
Go is dynamically typed - TRUE or FALSE
A
Go is statically typed language, it means we need to provide the type of the variables before its use.
2
Q
What are unsigned integers?
A
Integers which contains only zero and positive integers.
3
Q
Unsigned integer types in Go?
A
uint8
uint16
uint32
uint64
4
Q
Signed integer types in Go?
A
int8
int16
int32
int64
5
Q
Floating types in Go?
A
float32
float64
6
Q
Complex types in Go?
A
complex64
complex128
7
Q
How strings are represented in Go?
A
- By double quote - “”
2. By back-ticks - ``
8
Q
Which string syntax should we use for preserving white spaces?
A
Backticks - ``
9
Q
Function to find length of the string?
A
len(“string”)
10
Q
How to concatenate multiple strings?
A
Using “+” symbol
11
Q
Boolean type in Go-lang
A
true
false