CS20Probset1
CS20Probset1
1. Convert 141425 to
(a) Base 2
(b) Base 4
(c) Base 6
(d) Base 30
No need to write the base subscript.
2. Consider the hexadecimal number B1B0 .
For the following subitems, use the alphanumeric characters 0123456789ABC...XYZ
for the digits of numbers represented up to base 36.
(a) Write the hexadecimal number B1B0 in binary. No need to write
the base subscript.
(b) Write the hexadecimal number B1B0 in octal. No need to write the
base subscript.
(c) Write the hexadecimal number B1B0 in base 32. No need to write
the base subscript.
(d) If B1B0 is treated as the signed-magnitude representation of an in-
teger, what integer does it represent? Write it in decimal, without
the base subscript.
(e) If B1B0 is treated as the unsigned-magnitude representation of an
integer, what integer does it represent? Write it in decimal, without
the base subscript.
3. For each of the following, answer with always, never, or sometimes.
Also, assume that each variable stands for an integer greater than 5.