Boolean Logic Flashcards

(25 cards)

1
Q

What is Boolean logic?

A

A form of algebra that uses true/false values 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 is used in computer programming.

A

True

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

What are the three basic operations in Boolean logic?

A

AND, OR, NOT

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

Fill in the blank: The AND operation returns true if ______.

A

both operands are true

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

What does the OR operation do?

A

It returns true if at least one operand is true.

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

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

A

True

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

What symbol is commonly used to represent the AND operation?

A

∧ (or && in programming)

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

What symbol represents the OR operation?

A

∨ (or || in programming)

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

In Boolean logic, what is the result of TRUE AND FALSE?

A

FALSE

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

In Boolean logic, what is the result of TRUE OR FALSE?

A

TRUE

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

What is the truth table for the AND operation?

A

TRUE AND TRUE = TRUE, TRUE AND FALSE = FALSE, FALSE AND TRUE = FALSE, FALSE AND FALSE = FALSE

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

What is the truth table for the OR operation?

A

TRUE OR TRUE = TRUE, TRUE OR FALSE = TRUE, FALSE OR TRUE = TRUE, FALSE OR FALSE = FALSE

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

What is the truth table for the NOT operation?

A

NOT TRUE = FALSE, NOT FALSE = TRUE

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

What is a Boolean variable?

A

A variable that can hold one of two values: true or false.

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

Fill in the blank: In programming, conditional statements often use ______ logic.

A

Boolean

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

True or False: A combination of Boolean operations can create complex conditions.

17
Q

What is a common use of Boolean logic in everyday technology?

A

Search engines use Boolean logic to refine search results.

18
Q

What is the result of NOT (TRUE AND FALSE)?

19
Q

What does the expression (A OR B) AND C evaluate to if A is TRUE, B is FALSE, and C is TRUE?

20
Q

What is the purpose of parentheses in Boolean expressions?

A

To define the order of operations.

21
Q

What is a logical circuit?

A

A physical representation of Boolean logic using electronic components.

22
Q

Fill in the blank: The output of a logic gate is ______ based on its input values.

23
Q

True or False: XOR (exclusive OR) returns true if both operands are true.

24
Q

What does XOR return when both operands are different?

25
What is a truth table used for?
To represent the output of a Boolean expression for all possible input combinations.