Question | Click to View Answer |
What does the following code print to the console? package main
import "fmt"
func main() {
fmt.Println(4 == 99)
}
|
In this example, 4 and 99 are the operands and |
What does the following code print to the console? fmt.Println(10 == 10)
|
The |
What does the following code print to the console? fmt.Println("cat" != "dog")
|
The |
What does the following code print to the console? fmt.Println("mouse" != "mouse")
|
The |
What does the following code print to the console? fmt.Println(true && true)
|
The |
What does the following code print to the console? fmt.Println(false && true)
|
The |
What does the following code print to the console? fmt.Println(false || true)
|
The |
What does the following code print to the console? fmt.Println(false || false)
|
The |
What does the following code print to the console? fmt.Println(!true)
|
In this example, |
What does the following code print to the console? fmt.Println(!false)
|
The |
What does the following code print to the console? fmt.Println(true && (4 == 4))
|
|
What does the following code print to the console? fmt.Println("lion" == "cat" || 99 != 88)
|
|