Boolean logic

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Logic gates

A visual way of representing a Boolean expression.

2
New cards

What is a truth table?

A table that shows all possible input combinations of 1s & 0s, and the corresponding outputs.

3
New cards

What are the 4 logic gates?

  1. AND

  2. OR

  3. NOT

  4. XOR

4
New cards

What does AND do? What is its symbol and expression operator?

Returns TRUE only if both inputs are TRUE.

Expression operator = ‘.’

  • e.g. A.B (A AND B)

<p>Returns TRUE only if both inputs are TRUE.</p><p>Expression operator = ‘.’</p><ul><li><p><em>e.g. </em>A.B (A AND B)</p></li></ul>
5
New cards

AND truth table:

Input A

Input B

A.B

0

0

0

0

1

0

1

0

0

1

1

1

6
New cards

What does OR do? What is its symbol and expression operator?

Returns TRUE if either input is TRUE.

Expression operator = ‘+’

  • e.g. A + B (A OR B)

<p>Returns TRUE if either input is TRUE.</p><p>Expression operator = ‘+’</p><ul><li><p><em>e.g.</em> A + B (A OR B)</p></li></ul>
7
New cards

OR truth table:

Input A

Input B

A+B

0

0

0

0

1

1

1

0

1

1

1

1

8
New cards

What does NOT do? What is its symbol and expression operator?

Reverses the input value.

Expression operator =

  • e.g. A̅ (NOT A)

<p>Reverses the input value.</p><p>Expression operator = <span>A̅</span></p><ul><li><p><em>e.g. </em><span>A̅ (NOT A)</span></p></li></ul>
9
New cards

NOT truth table:

Input A

0

1

1

0

10
New cards

What does XOR do? What is its symbol and expression operator?

Returns if TRUE if either input is TRUE but not if both are.

Expression operator = ‘

  • e.g. A⊕B (A XOR B)

<p>Returns if TRUE if either input is TRUE but not if both are.</p><p>Expression operator = ‘<span>⊕</span><strong><span>’</span></strong></p><ul><li><p>e.g. A<span>⊕B (A XOR B)</span></p></li></ul>
11
New cards

XOR truth table:

Input A

Input B

A⊕B

0

0

0

0

1

1

1

0

1

1

1

0

12
New cards
<p><strong>What is P</strong>?</p>

What is P?

P = (A OR B) AND (NOT C)

P = (A + B).C̅