0% found this document useful (0 votes)
13 views5 pages

2007 Sample Terms Test Answers

Uploaded by

lidan88715
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views5 pages

2007 Sample Terms Test Answers

Uploaded by

lidan88715
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SAMPLE TEST QUESTIONS - 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

3. The logic gate combination


on the right represents the Boolean
expression:
(a) (A.B) + C A
B
(b) A.(B + C)
Q
(c) (A.B) ⊕ C C

(d) A . (B ⊕ C)

4. Select the truth table which corresponds to the Boolean expression (A + B) .:


(a) A B Q (b) A B Q
0 0 0 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1

(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

Sign bit is 1 so : (i) answer is negative


(ii) answer is in 2's comp

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

This is: -(32 + 8 + 2 +1) = -43


6. The diagram on the right
illustrates the use of a transistor 5V
as a switch in an electrical circuit
(i.e. the use of the gate voltage Vgate
R1
applied to the transistor to control
the output voltage Vout. Explain Vout
briefly how this is done and why
using a transistor as a switch is Vgate RT
preferable to having a mechanical
switch. 0V

When a HIGH voltage is applied to the gate terminal of a MOSFET


transistor the resistance across the transistor (RT) is small. When a LOW
voltage is applied to the gate RT is very large.

R1 and RT act as a potential divider.

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 top XOR gate has an output of 1 if A0 ≠ B0.

The lower XOR gate has an output of 1 if A1 ≠ B1.

The NOR gate will have an output of 1 only if the outputs of both the
XOR gates are 0.

Thus Q will be 1 ONLY if A0 = B0 and A1 = B1.

Thus the circuit tests for A0 = B0 AND A1 = B1.


8. Design a logic circuit whose output is HIGH whenever A and B are both
HIGH as long as C and D are either both HIGH or both LOW.

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.

In terms of Boolean algebra: AB(C + D) = Q

You might also like