boolean logic Flashcards

boolean logic (10 cards)

1
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
2
Q

True or False: In Boolean logic, the expression A AND B is true only if both A and B are true.

A

True

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

Fill in the blank: The result of the operation A OR B is _____ if at least one of A or B is true.

A

true

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

What is the output of a NOT operation when the input is true?

A

false

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

Which Boolean operation is represented by the symbol ‘&&’ in programming languages?

A

AND

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

True or False: The expression A OR B is false if both A and B are false.

A

True

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

What is the result of the expression (TRUE AND FALSE) OR (FALSE AND TRUE)?

A

FALSE

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

Multiple Choice: What is the result of NOT (A OR B) when A is true and B is false? A) TRUE B) FALSE

A

B) FALSE

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

What is the identity law for the AND operation?

A

A AND TRUE = A

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

Fill in the blank: In Boolean algebra, the expression A AND (B OR C) is equivalent to _____ when distributed.

A

A AND B OR A AND C

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