Common operators Flashcards

1
Q

4 + 3

A

Adds two numeric values

Operator is +
Value: 7

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

-(-2)

A

Reverses the sign of one numeric value

Operator is - (unary)
Value: 2

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

11 - 5

A

Subtracts one numeric value from another

Operator is - (binary)
Value: 6

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

3 * 5

A

Multiplies two numeric values

Operator is *
Value: 15

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

4 / 2

A

Divides one numeric value by another

Operator is /
Value: 2

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

5 % 2

A

Divides one numeric value by another and returns the integer remainder

Operator is % (modulo)
Value: 1

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

5^2

A

Raises one numeric value to the power of another

Operator is ^
Value: 25

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

1 = 2

A

Compares two values for equality

Operator is =
Value: FALSE

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

1 != 2

1 <> 2

A

Compares two values for inequality

Operator is != <>
Value: TRUE

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

2 < 2

A

Compares two values with <

Operator is <
Value: TRUE

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

2 <= 2

A

Compares two values with <=

Operator is <=
Value: TRUE

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

‘2019-08-13’ > ‘2021-08-13’

A

Compares two values with >

Operator is >
Value: FALSE

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

‘apple’ >= ‘banana’

A

Compares two values with ≥

Operator is >=
Value: FALSE

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

TRUE AND FALSE

A
  1. The “AND” operator ensures that all conditions must be true for it to return true.
  2. If either value is false, the result is false.

Operator is AND
Value: FALSE

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

TRUE OR FALSE

A

Returns FALSE only when both values are FALSE

Operator is OR
Value: TRUE

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

NOT FALSE

A

Reverses a logical value

Operator is NOT
Value: TRUE