Arithmetic Flashcards
1
Q
3 = 2+1
What operation is used?
A
Addition
2
Q
4-1 = 3
What operation is used?
A
Subtraction
3
Q
2*2
What operation is used?
A
Multiplication
4
Q
5/2
What operation is being used?
A
Division
5
Q
What is floor division and give an example?
A
Floor division uses the // operator which truncates the decimal without rounding and returns an integer result.
e.g. 7//4 = 1
6
Q
How do we get just the remainder after division?
A
The % operater returns the remainder after division.
7%4 = 3 because 4 goes into 7 once and the remainder is 3.
7
Q
Give an example of the power operator
A
(Use ** to find the power)
e.g. 23 or 42 or 5**2
8
Q
3+2 = ?
A
5
9
Q
5-2 =
A
3
10
Q
3*3 =
A
9
11
Q
3/2 =
A
1.5
12
Q
6//4 =
A
1
13
Q
2**3 =
A
8
14
Q
4*0.5
A
2.0
15
Q
2 + 10 * 10 + 3 =
A
105