Boolean Logic Flashcards
Is the statement true or false?
1
Q
!false
A
TRUE
2
Q
!true
A
FALSE
3
Q
true || false
A
TRUE
4
Q
true || true
A
TRUE
5
Q
false || true
A
TRUE
6
Q
false || false
A
FALSE
7
Q
true && false
A
FALSE
8
Q
true && true
A
TRUE
9
Q
false && true
A
FALSE
10
Q
false && false
A
FALSE
11
Q
not (true || false)
A
FALSE
12
Q
not (true || true)
A
FALSE
13
Q
not (false || true)
A
FALSE
14
Q
not (false || false)
A
TRUE
15
Q
!(true && false)
A
TRUE
16
Q
!(true && true)
A
FALSE
17
Q
!(false && true)
A
TRUE
18
Q
!(false && false)
A
TRUE
19
Q
1 != 0
A
TRUE
20
Q
1 != 1
A
FALSE
21
Q
0 != 1
A
TRUE
22
Q
0 != 0
A
FALSE
23
Q
1 == 0
A
FALSE
24
Q
1 == 1
A
TRUE
25
Q
0 == 1
A
FALSE
26
Q
0 == 0
A
TRUE
27
Q
&&
A
and
28
Q
||
A
or
29
Q
!
A
not
30
Q
!=
A
not equal
31
Q
==
A
equal
32
Q
> =
A
greater-than-equal
33
Q
<=
A
less-than-equal
34
Q
true
A
TRUE
35
Q
false
A
FALSE
36
Q
A
comparison
37
Q
>
A
greater than
38
Q
<
A
less than
39
Q
===
A
equality
40
Q
.eql?
A
equal in type and value
41
Q
equal?
A
equal in argumentid