1.7 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.7 KiB
		
	
	
	
	
	
	
	
Which group of operators below is arithmetic operators?
- **, /, ^, !, ++, --
 - *, /, %, +, - CORRECT
 - &, |, +, -, /
 
Which value below you can use with a remainder operator?
- 3.54
 - true
 - 57 CORRECT
 - "Try Me!"
 
4: Nice Try. But, that's not right. Sorry.
3: That's right. The remainder operator only works on integer values.
What's the result of this expression?
8 % 3
- 4
 - 2 CORRECT
 - 0
 - 1
 
What's the result of this expression?
-(3 * -2)
- -6
 - -1
 - 0
 - 6 CORRECT
 
What's the result of this expression?
var degree float64 = 10 / 4
- 2.5
 - 2.49
 - 2 CORRECT
 - 0
 
3: That's right. An integer value cannot contain fractional parts.
What's the result of this expression?
var degree float64 = 3. / 2
- 1.5 CORRECT
 - 1.49
 - 1
 - 0
 
1: That's right.
3.makes the whole expression a float value.
What's the type of the x variable?
x := 5 * 2.
- int
 - float64 CORRECT
 - bool
 - string
 
1: Look closely to 2 there.
2: Why? Because,
2.there makes the expressions a float value. Cool.3: Oh, come on! Life is not always true and false.
4: I can't see any double-quotes or back-quotes, can you?
What's the type of the x variable?
x := 5 * -(2)
- int CORRECT
 - float64
 - bool
 - string
 
1: Why? Because, there only integer numbers.
2: I can't see any fractional parts there, can you?
3: Oh, come on! Life is not always true and false.
4: I can't see any double-quotes or back-quotes, can you?
Which kind of values can result in inaccurate calculations?
- integers
 - floats CORRECT
 - bools
 - strings