Boolean Logic Flashcards

(26 cards)

1
Q

What is Boolean logic?

A

A form of algebra that uses true or false values.

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

True or False: Boolean logic only uses two values.

A

True

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

What are the two basic values in Boolean logic?

A

True and False

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

Fill in the blank: The three basic operations of Boolean logic are AND, OR, and ____.

A

NOT

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

What does the AND operation do in Boolean logic?

A

It returns true only if both operands are true.

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

True or False: The OR operation 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

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

A

False

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

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

A

True

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

Fill in the blank: The NOT operation inverts the value of ____.

A

A boolean value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

In Boolean logic, what does the expression A AND B OR C mean?

A

It means A AND B must be true, or C can be true.

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

True or False: The expression A OR B AND C is evaluated the same as A AND B OR C.

A

False

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

What is the precedence order of operations in Boolean logic?

A

NOT, AND, OR

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

Multiple Choice: Which of the following expressions is equivalent to NOT (A AND B)? A) A OR B, B) NOT A OR NOT B, C) A AND NOT B

A

B) NOT A OR NOT B

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

Fill in the blank: A truth table shows all possible combinations of ____ for a set of variables.

A

True or false values

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

How many rows are in a truth table for two variables?

17
Q

True or False: In a truth table, each row represents a unique combination of input values.

18
Q

What does the truth table for A AND B look like when both A and B are true?

19
Q

What does the truth table for A OR B look like when both A and B are false?

20
Q

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

A

Nested operations

21
Q

What is a common application of Boolean logic in computer science?

A

Decision making in algorithms

22
Q

True or False: Boolean logic is only applicable in programming.

23
Q

What logical operation is represented by the symbol ‘&&’?

24
Q

What logical operation is represented by the symbol ‘||’?

25
What is the result of the expression TRUE && FALSE?
FALSE
26
What is the result of the expression TRUE || FALSE?
TRUE