Boolean Logic Flashcards

Is the statement true or false?

You may prefer our related Brainscape-certified flashcards:
1
Q

!false

A

TRUE

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

!true

A

FALSE

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

true || false

A

TRUE

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

true || true

A

TRUE

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

false || true

A

TRUE

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

false || false

A

FALSE

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

true && false

A

FALSE

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

true && true

A

TRUE

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

false && true

A

FALSE

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

false && false

A

FALSE

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

not (true || false)

A

FALSE

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

not (true || true)

A

FALSE

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

not (false || true)

A

FALSE

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

not (false || false)

A

TRUE

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

!(true && false)

A

TRUE

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

!(true && true)

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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