boolian logic Flashcards

(30 cards)

1
Q

What is Boolean logic?

A

A form of algebra that uses true and false values.

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

What are the basic operators in Boolean logic?

A

AND, OR, and NOT.

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

True or False: In Boolean logic, 1 represents true and 0 represents false.

A

True.

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

Fill in the blank: The result of an AND operation is true only if both operands are ______.

A

true.

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

What is the result of A AND B if A is false and B is true?

A

False.

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

What is the result of A OR B if both A and B are false?

A

False.

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

True or False: The NOT operator inverts the value of its operand.

A

True.

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

What is the result of NOT A if A is true?

A

False.

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

Which operator would you use to combine two conditions that must both be true?

A

AND.

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

What does the expression A OR B evaluate to if A is true?

A

True.

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

In Boolean logic, what is the precedence order of operations?

A

NOT, AND, OR.

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

Fill in the blank: The expression A AND (B OR C) is an example of _______.

A

operator precedence.

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

True or False: The expression (A AND B) OR (A AND NOT B) is equivalent to A.

A

True.

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

What does the term ‘truth table’ refer to in Boolean logic?

A

A table that shows all possible values of a logical expression.

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

How many rows does a truth table for two variables have?

A

Four.

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

What is the purpose of using Boolean logic in computer science?

A

To perform logical operations in programming and circuit design.

17
Q

Fill in the blank: The expression A AND B is true if and only if A is ______ and B is ______.

18
Q

Which of the following is a valid Boolean expression? A) A AND B B) A + B C) A * B

19
Q

True or False: XOR is a Boolean operator that returns true if exactly one operand is true.

20
Q

What is the result of A XOR A?

21
Q

In Boolean algebra, what is the identity law for AND?

A

A AND true = A.

22
Q

What is the identity law for OR?

A

A OR false = A.

23
Q

Fill in the blank: The expression A OR (A AND B) simplifies to ______.

24
Q

What does De Morgan’s theorem state?

A

NOT (A AND B) = (NOT A) OR (NOT B) and NOT (A OR B) = (NOT A) AND (NOT B).

25
True or False: Boolean logic is only applicable in mathematics.
False.
26
What is a common application of Boolean logic in search engines?
To filter search results based on keywords.
27
Fill in the blank: The expression (A AND B) OR (A AND C) can be factored to ______.
A AND (B OR C).
28
What is the complement of A in Boolean logic?
NOT A.
29
True or False: The expression A AND NOT A is always true.
False.
30
What is the primary use of Boolean logic in digital circuits?
To create logical gates that control electronic signals.