boolean logic Flashcards

(25 cards)

1
Q

What is Boolean logic?

A

A form of algebra that uses truth values (true and false) to perform logical operations.

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

True or False: Boolean logic only deals with binary values.

A

True

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

Fill in the blank: In Boolean logic, the operator ‘AND’ is represented by the symbol ____.

A

&&

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

What is the result of the expression true AND false?

A

false

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

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

A

C) true && false

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

True or False: The OR operator returns true if at least one operand is true.

A

True

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

Fill in the blank: The operator ‘OR’ is commonly represented by the symbol ____.

A

||

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

What is the result of the expression false OR true?

A

true

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

What is the output of NOT true?

A

false

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

True or False: The expression (true AND false) OR (false AND true) evaluates to true.

A

False

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

What is the result of the expression true AND (false OR true)?

A

true

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

Identify the logical operation: A || B.

A

Logical OR

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

What is De Morgan’s theorem in Boolean logic?

A

It states that the negation of a conjunction is the disjunction of the negations, and vice versa.

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

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

A

True

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

What is the precedence order of operations in Boolean logic?

A

NOT has the highest precedence, followed by AND, then OR.

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

Fill in the blank: The logical operation that returns true only when both operands are false is called ____.

17
Q

What is the complementary operation of AND?

18
Q

Which of the following is a tautology? A) A AND NOT A B) A OR NOT A C) A AND B

A

B) A OR NOT A

19
Q

True or False: A XOR B evaluates to true when both A and B are the same.

20
Q

What does the XOR operator represent?

A

Exclusive OR, true if exactly one operand is true.

21
Q

Fill in the blank: The truth table for A AND B has ____ rows.

22
Q

What is the truth value of the expression A OR B when A is false and B is true?

23
Q

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

24
Q

What is the term for a logical statement that is always true?

25
Fill in the blank: The negation of the expression A OR B is ____.
NOT A AND NOT B