Booleans Flashcards

1
Q

Boolean Values

A

Can only be true or false

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

Boolean Operations

A

! (not)
&& (and)
|| (or)

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

!true
!false

A

false (or not true)
true (or not false)

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

&&

A

Takes in 2 booleans.
false && false == false
false && true == false
true && false == false
true && true == true

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

||

A

false && false == false
false && true == true
true && false == true
true && true == true

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