Solved Logic gates worksheet, Computer Science. Please | Chegg.com - Free Printable
Educational worksheet: Solved Logic gates worksheet, Computer Science. Please | Chegg.com. Download and print for classroom or home learning activities.
PNG
819×935
182.1 KB
Free · Personal Use
Quality Assured by Worksheets Library Team
Reviewed for educational accuracy and age-appropriateness
ID: #1631026
⭐
Show Answer Key & Explanations
Step-by-step solution for: Solved Logic gates worksheet, Computer Science. Please | Chegg.com
▼
Show Answer Key & Explanations
Step-by-step solution for: Solved Logic gates worksheet, Computer Science. Please | Chegg.com
Let’s solve this step by step.
---
#### First gate (left):
- Shape: Curved input side, pointed output → OR gate
- Description: “Takes two inputs and gives an output if either one input or the other input or both inputs are true” → That’s OR.
- Truth table for OR:
- 0 OR 0 = 0
- 0 OR 1 = 1
- 1 OR 0 = 1
- 1 OR 1 = 1
So fill in:
```
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
```
#### Second gate (middle):
- Shape: Flat input side, rounded output → AND gate
- Description: “Takes two inputs and gives an output only if both inputs are true” → That’s AND.
- Truth table for AND:
- 0 AND 0 = 0
- 0 AND 1 = 0
- 1 AND 0 = 0
- 1 AND 1 = 1
But note: The table shown only has 2 rows filled? Wait — looking again, it shows 4 rows but only first two have values? Actually, no — the image shows a 4-row table for AND too. Let me check:
Actually, in the image, the middle table has 4 rows (same as left), so we fill all 4:
```
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
```
Wait — in the original image, the middle table only shows 2 rows with data? No — actually, looking carefully, the user’s image shows:
For the middle gate (AND), the truth table has 4 rows, same as OR. So yes, fill all 4.
#### Third gate (right):
- Shape: Triangle with circle at output → NOT gate (inverter)
- Description: “Takes one input and gives an output that is the opposite value to the input” → NOT.
- Truth table:
- Input 0 → Output 1
- Input 1 → Output 0
So:
```
Input | Output
0 | 1
1 | 0
```
---
We have:
- Input A goes into a NOT gate → output is C
- Then C and Input B go into an AND gate → final Output
So:
C = NOT A
Output = C AND B = (NOT A) AND B
Let’s compute row by row:
Row 1: A=0, B=0
→ C = NOT 0 = 1
→ Output = 1 AND 0 = 0
Row 2: A=0, B=1
→ C = NOT 0 = 1
→ Output = 1 AND 1 = 1
Row 3: A=1, B=0
→ C = NOT 1 = 0
→ Output = 0 AND 0 = 0
Row 4: A=1, B=1
→ C = NOT 1 = 0
→ Output = 0 AND 1 = 0
So the table becomes:
```
Input A | Input B | C | Output
0 | 0 | 1 | 0
0 | 1 | 1 | 1
1 | 0 | 0 | 0
1 | 1 | 0 | 0
```
---
Final Answer:
Gate Labels:
- Left gate: OR
- Middle gate: AND
- Right gate: NOT
Truth Tables:
*OR Gate:*
| Input A | Input B | Output |
|---------|---------|--------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
*AND Gate:*
| Input A | Input B | Output |
|---------|---------|--------|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
*NOT Gate:*
| Input | Output |
|-------|--------|
| 0 | 1 |
| 1 | 0 |
*Combined Circuit Table:*
| Input A | Input B | C | Output |
|---------|---------|-----|--------|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 |
---
Part 1: Label the gates and fill in their truth tables
#### First gate (left):
- Shape: Curved input side, pointed output → OR gate
- Description: “Takes two inputs and gives an output if either one input or the other input or both inputs are true” → That’s OR.
- Truth table for OR:
- 0 OR 0 = 0
- 0 OR 1 = 1
- 1 OR 0 = 1
- 1 OR 1 = 1
So fill in:
```
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
```
#### Second gate (middle):
- Shape: Flat input side, rounded output → AND gate
- Description: “Takes two inputs and gives an output only if both inputs are true” → That’s AND.
- Truth table for AND:
- 0 AND 0 = 0
- 0 AND 1 = 0
- 1 AND 0 = 0
- 1 AND 1 = 1
But note: The table shown only has 2 rows filled? Wait — looking again, it shows 4 rows but only first two have values? Actually, no — the image shows a 4-row table for AND too. Let me check:
Actually, in the image, the middle table has 4 rows (same as left), so we fill all 4:
```
Input A | Input B | Output
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
```
Wait — in the original image, the middle table only shows 2 rows with data? No — actually, looking carefully, the user’s image shows:
For the middle gate (AND), the truth table has 4 rows, same as OR. So yes, fill all 4.
#### Third gate (right):
- Shape: Triangle with circle at output → NOT gate (inverter)
- Description: “Takes one input and gives an output that is the opposite value to the input” → NOT.
- Truth table:
- Input 0 → Output 1
- Input 1 → Output 0
So:
```
Input | Output
0 | 1
1 | 0
```
---
Part 2: Combination of two gates
We have:
- Input A goes into a NOT gate → output is C
- Then C and Input B go into an AND gate → final Output
So:
C = NOT A
Output = C AND B = (NOT A) AND B
Let’s compute row by row:
Row 1: A=0, B=0
→ C = NOT 0 = 1
→ Output = 1 AND 0 = 0
Row 2: A=0, B=1
→ C = NOT 0 = 1
→ Output = 1 AND 1 = 1
Row 3: A=1, B=0
→ C = NOT 1 = 0
→ Output = 0 AND 0 = 0
Row 4: A=1, B=1
→ C = NOT 1 = 0
→ Output = 0 AND 1 = 0
So the table becomes:
```
Input A | Input B | C | Output
0 | 0 | 1 | 0
0 | 1 | 1 | 1
1 | 0 | 0 | 0
1 | 1 | 0 | 0
```
---
Final Answer:
Gate Labels:
- Left gate: OR
- Middle gate: AND
- Right gate: NOT
Truth Tables:
*OR Gate:*
| Input A | Input B | Output |
|---------|---------|--------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
*AND Gate:*
| Input A | Input B | Output |
|---------|---------|--------|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
*NOT Gate:*
| Input | Output |
|-------|--------|
| 0 | 1 |
| 1 | 0 |
*Combined Circuit Table:*
| Input A | Input B | C | Output |
|---------|---------|-----|--------|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 |
Parent Tip: Review the logic above to help your child master the concept of truth table practice worksheet with answers.