Operators/Symbols Flashcards

(10 cards)

1
Q

1+2+3+4

A

Addition

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

10-1

A

Subtraction

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

2*3

A

Multiplication

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

16/4

A

Division

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

10%3

A

Modulus

(Calculates Remainder)

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

2**3

A

Exponential

(Find the power of something of something)

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

10//3

A

Floor division operator

(Divides, discarding remainder;
ex: 3)

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

+

A

Concatenation (adds values on either side of the operator)

“Hello” + “World”

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

*

A

Repetition

“Hello”*2

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

1) []

2) [ : ]

A

1) Slice (Gives character from given index)
“Hello”[0] will give H

2) Range Slice (Gives characters from given range)
“Hello”[0:4] will give Hell

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