Logical Operators Flashcards

0
Q

&&

A

and (true if both are true, false if both are false)

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

||

A

or (true if one is true, false if both are false)

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

~

A

not (gives opposite)

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

xor

A

Exclusive or (true if and only if one is true and one is false)

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

|

A

Or operator that compares arrays element by element.

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

&

A

And operator that compares arrays element by element.

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