Professional Documents
Culture Documents
Answer the following questions only in the provided space Time allowed: 30 min
Use back of the page for rough work – no opening of notebooks or texts! Maximum points: 35
2. What is the binary equivalent of (0.67)10 evaluated to the 3rd binary bit? 2 pts
3. Determine the 1’s complement of negative (5B3)16 in binary form. Assume # is 12 bit long 3 pts
The number is negative since the MSB is one and the number is in 2’s Complement.
Taking the 2’s Complement we get (010111)2 = (23)10. But the original number is
negative so we have -23
5. Express -0.1011101 x 226 as a Single Precision Floating Point binary # per IEEE 754 format. 2 pts
This is a positive number, therefore sign bit is 0. Arranging the number we get
-1.011101 x 225. Exponent is equal to 127+25=152 (152)10 = (10011000)2.
The number is 1|10011000|000000000000000000
9. For a 9-bit 2’s complement form, what is the range of integer numbers that can be represented? 2pts
10. Perform the following operation on the two octal numbers: 2 pts
5 7 3 3
- 1 6 7 5
4 0 3 6
Alternate method: First take the 2’s Complement of the number (1675)8
7777-1675+1 = (6103)8
Now add the first number in the 2’s Complement of the second number.
5733
+6103
1 4 0 3 6 discard carry
0 1 1 1 1 0 0 1
+ 0 1 1 0 0 1 0 1
1 0 1 1 1 1 1 1
1 0 1 1 0 adding 6 because
Number is > 9
1 1 0 0 0 1 0 1
0 1 1 0 adding 6 because number >9
1 0 0 1 0 0 1 0 1 Answer
13. In an 8-bit digital system being considered, a designer is facing constraints in allocating an additional bit for
odd parity in his design. However, he knows realistically for all his inputs, the 8th MSB bit will never be
used in the given system. So, he decides to implement the unused 8th bit as odd parity bit. Can you help him
determine the parity bit for the following set of inputs: 2 pts
0 1 0 1 0 1 1 1
1 0 1 1 1 0 0 1
In the above system, will the designer be able to detect single digit errors? Why? 2 pts
A gray code is an un-weighted code. It changes a single bit from one code to the next in sequence.