Comparison and Logical Operators Flashcards

1
Q

==

A

Equal to, x == y

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

!=

A

Not equal, x != y

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

>

A

Greater than, x > y

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

<

A

Less than, x < y

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

> =

A

Greater than or equal to, x >= y

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

<=

A

Less than or equal to, x <= y

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

&&

A

Logical and, Returns true if both statements are true, x < 5 && x < 10

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

||

A

Logical or, Returns true if one of the statements is true x < 5 || x < 4

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

!

A

Logical not, Reverse the result, returns false if the result is true, !(x < 5 && x < 10)

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