Professional Documents
Culture Documents
Exercise 1
1. To control the flow of electricity by changing the current from low (0) to high (1) or
vice versa.
2. Computers can only process binary data, but there needs to be a way to convert
from 0 to 1 and 1 to 0 so that this binary data can be represented and stored.
3.
AND
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1
OR
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1
NAND
Input 1 Input 2 Output
0 0 1
0 1 1
1 0 1
1 1 0
4. NOT
5. OR
6. AND
7. XOR
8.
9.
Exercise 2
1(a).
1(b).
A B C Working space X
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
X
B
C
3(a).
S
Z
3(b).
P S T Working space Z
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
Exercise 3
1(a).
X = A AND (B OR C)
1(b).
B
X
1(c)
A B C Working space X
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
2(a)
2(b).
T X
2(c).
A B C Working space X
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Exercise 4
1.
X = (A AND B) NAND C
2.
3(a).
3(b).
P R S Working space X
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0
Exercise 5
1.
X = A AND NOT B
2(a).
2(b).
3.
Z = (NOT A AND NOT B AND C) OR (A AND B AND NOT C) OR (A AND B AND C)