2007 Sample Terms Test Answers
2007 Sample Terms Test Answers
1. Using 9-bit binary plus a sign bit, the base-10 number +338 is represented by:
(a) 1011010010
(b) 0101010010 S 256 128 64 32 16 8 4 2 1
0 1 0 1 0 1 0 0 1 0
(c) 0011010011
(d) 1011001001
2. Using 7-bit binary plus a sign bit, the 1's complement representation of the
binary for -73 is:
(a) 00110110
S 64 32 16 8 4 2 1
(b) 10110101 1 1 0 0 1 0 0 1 binary
1 0 1 1 0 1 1 0 1's comp
(c) 10110111
(d) 10110110
(d) A . (B ⊕ C)
(c) (d)
A B Q A B Q
0 0 1 0 0 0
0 1 0 0 1 0
1 0 0 1 0 0
1 1 0 1 1 1
5. Use 2's complement addition, representing numbers with 7-bits plus a sign bit,
to perform the subtraction 76 - 119.
S 64 32 16 8 4 2 1
+76 in binary 0 1 0 0 1 1 0 0
- 119 in binary 1 1 1 1 0 1 1 1
- 119 in 1's comp 1 0 0 0 1 0 0 0
- 119 in 2's comp 1 0 0 0 1 0 0 1
So sum is:
01001100
+ 10001001
11010101
2's comp 1 1 0 1 0 1 0 1
1's comp 1 1 0 1 0 1 0 0
binary 1 0 1 0 1 0 1 1
If R1 >> RT then the voltage across R1 is much larger than that across RT.
As the total voltage across R1 and RT combined is 5 V, this means that
Vout (voltage across RT) ≈ 0 V.
If R1 << RT then the voltage across R1 is much less than that across RT.
This means that Vout ≈ 5 V.
Thus making Vgate = HIGH makes Vout = LOW and when Vgate = LOW,
Vout = HIGH.
7. Explain briefly the operation of the combinational logic circuit shown below.
A0
B0
B
Q
A1
B1
B
The NOR gate will have an output of 1 only if the outputs of both the
XOR gates are 0.
A gate that gives a 1 when only both its inputs are 1 is and AND gate.
A gate that gives a 1 when either both inputs are 1 or both inputs are 0 is
an XNOR gate (XOR gate followed by a NOT gate).
If both these conditions are to be met the outputs must go into a second
AND gate.