Booleans Flashcards
1
Q
equal to
A
==
2
Q
not equal to
A
!=
3
Q
what do booleans do
A
compare two things
4
Q
what will booleans be assigned
A
true or false
5
Q
booleans are used with
A
if statements
6
Q
how to invert a boolean
A
!
7
Q
if a is true and b is false what will a&&b give
A
false (a and b)
8
Q
if a is true and b is true what will a&&b give
A
true (a and b )
9
Q
what sign is used for and
A
&&
10
Q
what sign is used for or
A
||
11
Q
if a is true and b is false what will a||b give
A
true
12
Q
if a is rue and b is true whta will a||b give
A
true
13
Q
if a is false and b is false what will a||b give
A
false
14
Q
if a is true what will !a give
A
false
15
Q
boolean ! associativity (which direction is it read in)
A
right to left