Arithmetic Operators Flashcards

Simple Operators such as division, multiplication, addition, and subtraction

1
Q

+

A

ADD

Adds the values on either side of the operator.

Ex: 10 + 20 = 30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

-

A

SUBTRACT

Subtracts the right operand from the left operand.

Ex: 10 - 20 = -10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

*

A

MULTIPLY

Multiplies values on either side of the operator

Ex: 10 * 20 = 200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

/

A

DIVIDE

Divides the left operand by the right operand.

Ex: 20 / 10 = 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

%

A

MODULO

Divides the left operand by the right operand and returns the remainder.

Ex: 20 % 10 = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

**

A

EXPONENT

Preforms exponential calculation on operators

Ex: 5 ** 2 = 25

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

//

A

FLOOR DIVISION

The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, I.E. rounded away from zero (towards negative infinity)

Ex: 
9 // 2 = 4
9.0 // 2.0 = 4.0
-11 // 3 = -4
-11.0 // 3 = -4.0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly