Sobes.tech

// Question 5. What will be displayed on the screen func main() { ch := make(chan int, 5) for i := 1; i <= 5; i++ { ch <- i } for true { fmt.Println(<-ch) } }

184

// Question 3. What will be displayed on the screen package main import "fmt" import "math" func main() { i := int32(math.Pow(2, 64)) - 1 fmt.Println(i) }

183

There is an application with multiple endpoints, dependencies (DB, cache, libraries). Where should recover be specified so that the application does not crash in case of panic?

181

// Question 2. What will be displayed on the screen package main import "fmt" func main() { { defer fmt.Println(1) } defer fmt.Println(2) }

181
/11