2.4.1 Boolean Logic Flashcards

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

What is the purpose of a truth table? [2]

A

To predict all possible outputs [1] from a program given all possible inputs [1]

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

What are the three Boolean operators? [3]

A

AND [1] OR [1] NOT [1]

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

What is the rule for an AND gate? [1]

A

Both inputs must be True / 1 [1]

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

What is the rule for an OR gate? [1]

A

One or both inputs must be True / 1 [1]

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

What is the rule for a NOT gate? [1]

A

Input must be False [1] (A NOT gate flips the input)

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

Which gate is this? [1]

A

And [1]

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

Which gate is this? [1]

A

NOT [1]

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

Which gate is this? [1]

A

OR [1]

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

What would be the outcome of this gate if A was 1 and B was 0?

A

1

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