Comparison Operators Flashcards

1
Q

==

A

If the values of two operands are equal, then the condition becomes true.

Ex: 10 == 20 is not true.

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

!=

A

If the values of two operands are not equal, then the condition becomes true.

Ex: 10 != 20 is true.

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

<>

A

If values of two operands are not equal, then the condition becomes true.

Ex: 10 <> 20 is true.

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

>

A

If the value of the left operand is greater than the right operand, the condition becomes true.

Ex: 10 > 20 is not true.

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

(less than symbol)

A

If the value of the left operand is lesser than the right operand, the condition is true.

Ex: 10 < 20 is true.

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

> =

A

If the value of the left operand is greater than or equal to the right operand, the condition is true.

Ex: 10 >= 20 is not true.

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

<=

A

If the value of the left operand is lesser than or equal to the right operand, the condition is true.

Ex: 10 <= 20 is true.

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