Name

advertisement
Computer Organization I
CMSC 2833
Name
Student ID
CRN
Date
Quiz 1
28718, Spring, 2010
January 27, 2010
1.
(5 points) The value 4D8EF3C2 IS the hexadecimal representation of an IEEE 754 single binary
floating-point number. Find the decimal representation and express it in scientific notation.
Determine the value of the three fields, ๐‘†, ๐ถ, and ๐นof the floating-point number. Compute the final
value, ๐‘‰, and express it in scientific notation.
Answer:
๐‘บ=
๐‘ช=
๐‘ญ=
๐‘ฝ=
2.
(5 points) Employ BCD arithmetic to find the sum of 293 and 573. Show all your work including all
corrections and carries. You are welcome to use the table below if you find it helpful.
Answer:
Decimal Decimal
100’s
10’s
1’s
Digit
Digit
Digit
Carry
293 Addend
Addend
+576 Augend
Augend
Sum
Uncorrected BCD Sum
Correction
Corrected BCD Sum
3.
(5 points) Write the expression “G. Boole” in ASCII using an eight-bit code. Include the period and the
space. Treat the leftmost bit of each character as a parity bit. Each eight-bit code should have even
parity. Express each character as two hexadecimal digits. Put each coded character below its source
in the table below.
Answer:
G
.
B
o
o
l
e
4.
(5 points) Represent the decimal number 5,137 in (a) BCD, (b) excess-3 code, (c) 2421 code, (d) 6311
code, and (e) 16’s complement representation in a 4 digit field assuming a radix of 16. Put your
answers in table below.
Answer:
Part Description
Answer
(a) BCD
(b) Excess-3 code
(c) 2421 code
(d) 6311 code
(e) 16’s complement
1
Download