# Quiz 1 Solutions

Mon Sep 21

You have up to 25 minutes. You may use a standard calculator, but no text book or notes.

1. Suppose we have the digits 124, written using base six. What quantity does that represent, expressed in base ten? +2

The column values in base six are (left to right) 36, 6, and 1. So this number is 1×36 + 2×6 + 4×1 = 36 + 12 + 4 = 52.

2. Convert the following unsigned binary numbers into base ten. +4

1. 11100    = 28
2. 11001    = 25
3. 11010    = 26
4. 111    = 7
3. Convert the following base ten numbers into binary using 5-bit signed two’s complement +4

1. $$-12$$    = 10100
2. $$-8$$    = 11000
3. $$12$$    = 01100
4. $$-1$$    = 11111
4. Add and verify the following unsigned (not fixed-size) binary numbers. +4

We keep the extra carry bit, because these are not fixed width!

    1 1                          1 1 1 1
1 1 0 0  = 12                  1 1 1 1 1  = 31
+ 1 0 0 1 1 0  = 38              + 1 0 0 1 0 0  = 36
——————————————                   ——————————————
1 1 0 0 1 0  = 50              1 0 0 0 0 1 1  = 67
5. Convert the hexadecimal number 2C4 to binary. +3

0010 1100 0100

6. Convert the octal number 617 to binary. +3

110 001 111