2.4 Flashcards

(22 cards)

1
Q

What is Boolean logic?

A

A logic system where values are either TRUE (1) or FALSE (0).

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

What are the three main Boolean operators in the course?

A

AND, OR, NOT

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

What does the AND operator do?

A

Returns TRUE only if both inputs are TRUE.

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

What is the truth table for AND?

A

00 → 001 → 010 → 011 → 1

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

What does the OR operator do?

A

Returns TRUE if either input is TRUE, including when both inputs are TRUE.

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

What is the truth table for OR?

A

00 → 001 → 110 → 111 → 1

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

What does the NOT operator do?

A

Reverses the input: TRUE becomes FALSE, and FALSE becomes TRUE.

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

What is the truth table for NOT?

A

0 → 11 → 0

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

What is a truth table used for?

A

To show all possible input combinations and their corresponding output for a logic expression.

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

How many outputs do logic gates have?

A

1

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

Which logic gate is represented by this symbol? (OR symbol)

A

OR

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

Which logic gate is represented by this symbol? (NOT symbol)

A

NOT

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

Which logic gate is represented by this symbol? (AND symbol)

A

AND

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

Which logic gate is represented by the ¬ symbol?

A

NOT

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

Which logic gate is represented by the ∨ symbol?

A

OR

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

Which logic gate is represented by the ∧ symbol?

17
Q

What is the order of operations in Boolean logic?

A

Brackets first, then NOT, then AND, then OR.

18
Q

Give an example of a Boolean expression.

A

A AND (B OR NOT C)

19
Q

Where is Boolean logic used in computing?

A

In IF statements (selection), logic gates, search filters, and decision-making systems.

20
Q

What is the output of: A = 1, B = 0 → A AND B?

21
Q

What is the output of: A = 1, B = 0 → A OR B?

22
Q

What is the output of: A = 1, NOT A?