[Semester 1] Introduction to Logic Flashcards

1
Q

What do logic gates do?

A

Logic gates represent Boolean functions, i.e. they can be either true or false.

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

An AND gate can be represented by this equation…

A

X = A · B

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

An OR gate can be represented by this equation…

A

X = A + B

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

True or false: A XOR gate is true if all inputs are true

A

False! A XOR gate is true if at least one input is true, but false if all or none of the inputs are true.

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

A XOR gate can be represented by this equation…

A

X = A ⊕ B

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

Negation

A

The opposite of the original gate, e.g. a NAND gate is always true unless all inputs are true.
Negation is indicated by a circle on the logic gate, or in equations, a line above the letter of the gate, like this: Ā

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

A XNOR gate can be represented by this equation…

A

X = A ⊙ B

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

True or false: A NOR gate has three inputs, A = 0, B = 0 and C = 0. The output value is 1.

A

True! NOR gates are only true if all inputs are false.

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

Why is electricity important in a logic circuit?

A

As the current flows through the circuit, it uses the logic gates to make logical decisions.

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