2.4 - Boolean Logic Flashcards

1
Q

Why is data represented in binary form?

A

Data is represented in binary form because computers are made of millions of transistors (tiny switches that can be either turned ON 1 or turned OFF 0)

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

What are logical operators?

A

Symbols used to represent circuits of transistors, E.G:
- NOT
- AND
- OR

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

What is a truth table used for?

A

Showing all possible inputs and the associated output for each input

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

What is the NOT (negotiation) logical operator?

A
  • Outputs the opposite of the input
  • Symbol: ¬
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the truth table for a NOT logical operator?

A

A | ¬A
0 | 1
1 | 0

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

What is the AND (conjunction) logic operator?

A
  • Outputs 1 only if both inputs are also 1
  • Symbol: ^
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the truth table for an AND logical operator?

A

A | B | A^B
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1

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

What is the OR (disjunction) logic operator?

A
  • Outputs 1 if either input is 1
  • Symbol: v
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the truth table for an OR logical operator?

A

A | B | A^B
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1

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