03 OSCA Logic Gate Exercise Solutions: Section A
03 OSCA Logic Gate Exercise Solutions: Section A
Page 1 of 8
SECTION A
Multiple Choice Questions
2. If a NOR gate has n inputs, how many possible input state combinations are there?
a) n.
b) 2n.
c) 2n
d) n2.
4. The output of a gate is low when at least one of its inputs is high. This is true for
_____ gate.
a) AND
b) NAND
c) OR
d) NOR
SECTION B
Exercises
A B C D E F Out
0 0
0 1
1 0
1 1
Answer
A B C D E F Out
0 0 1 0 1 0 0
0 1 1 1 0 0 1
1 0 0 0 1 1 1
1 1 0 0 0 0 0
2. What are the binary values of C, D, E, F, and G for all possible combinations
of A and B? Draw a truth table to show the results.
A B C D E F G
0 0
0 1
1 0
1 1
Answer
A B C D E F G
0 0 1 0 1 1 0
0 1 1 1 0 1 1
1 0 0 1 1 1 0
1 1 0 0 1 1 1
SECTION B
Exercises
Answer
a)
b)
c)
d)
4. Write the truth table and draw the logic diagram for each of the following:
a)
b)
c)
d)
e)
Answer
a)
a b
0 0 1
0 1 0
1 0 0
1 1 0
b)
a b c
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 1 1 1 1
1 0 0 1 0
1 0 1 1 1
1 1 0 0 0
1 1 1 0 0
c)
a b c
0 0 0 1 1 0 0 0
0 0 1 1 1 0 1 1
0 1 0 1 0 1 0 1
0 1 1 1 0 1 1 1
1 0 0 0 1 1 0 1
1 0 1 0 1 1 0 1
1 1 0 0 0 1 0 1
1 1 1 0 0 1 0 0
d)
a b
0 0 1 1 1 1 1
0 1 1 0 1 0 0
1 0 0 1 1 0 0
1 1 0 0 0 0 0
e)
a b c
0 0 0 0 0 0
0 0 1 0 1 1
0 1 0 1 0 1
0 1 1 1 1 1
1 0 0 1 1 1
1 0 1 1 0 1
1 1 0 0 1 1
1 1 1 0 0 0
5. Write the truth table and draw the logic circuit for the following expression.
F(x,y,z) = (xy XOR (y+z’)’) + x’z
Answer
0 0 0 0 1 1 0 0 1 0 0
0 0 1 0 0 0 1 1 1 1 1
0 1 0 0 1 1 0 0 1 0 0
0 1 1 0 0 1 0 0 1 1 1
1 0 0 0 1 1 0 0 0 0 0
1 0 1 0 0 0 1 1 0 0 1
1 1 0 1 1 1 0 1 0 0 1
1 1 1 1 0 1 0 1 0 0 1
6. Find the truth table and the expression for the following circuit.
d
c
Answer
Truth Table
x y z a b c d OF
0 0 0 0 0 1 1 1
0 0 1 0 1 1 1 1
0 1 0 1 1 1 1 0
0 1 1 1 0 1 1 0
1 0 0 1 0 0 0 1
1 0 1 1 1 0 1 0
1 1 0 1 0 0 1 0
1 1 1 1 0 0 0 1
Expression
(x+y) XOR ((y XOR z) + x’)