Logical Operators Flashcards

(4 cards)

1
Q

What are our three logical operators

A

And
Or
Not

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

And logical operator

A

And logical operator is used to test two conditions

Both conditions must evaluate true for the result to be true otherwise it will result in false

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

OR logical operator

A

Both conditions must evaluate false for the result to be false
And if either condition is true then the result will be true

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

NOT logical operator

A

If the condition evaluates too true, then they are not condition evaluates to false and if the condition evaluate false and then condition evaluate true

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