Logic Gates Worksheet, Computer Science
Please clearly state the truth tables. Thank you.
Label these basic logic gates and fill in their truth tables:
Gate 1:
Gate 2:
Gate 3:
Gate 1: This gate takes two inputs and gives an output if either one input or the other input or both inputs are true.
Gate 2: This gate takes two inputs and gives an output only if both inputs are true.
Gate 3: This gate takes one input and gives an output that is the opposite value to the input.
Truth Table for Gate 1:
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
Truth Table for Gate 2:
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
Truth Table for Gate 3:
Input A | Output
0 | 1
1 | 0
Please work out the output for Gate C.
Input A | Input B | Output C
0 | 0 |
0 | 1 |
1 | 0 |
1 | 1 |