Lecture Questions

  1. 2 ^ 16 = ________.

  2. G = ________.

  3. K = ________.

  4. T = ________.

  5. M = ________.

  6. With 4 bits we can get ________ different combinations.

  7. A 32 bit address will give us ________ addresses.

Floating Point

  1. With n bits, the range of an Unsigned Magnitude binary number is ________ to ________.

  2. With n bits, the range of a Twos Complement binary number is ________ to ________.

  3. We encode floating point numbers using either __ bits, __ bits, or ___ bits. Each encoded number has 3 parts: ______ , _________ , _________.

  4. For the 32 bit version:

  5. The _____ takes 1 bit.

  6. The exponent takes __ bits.

  7. The mantissa takes ___ bits.

  8. Convert x41BD0000 from 32 bit floating point to decimal

Masks, Vectors, and Bitwise Operations

  1. What is a bit mask?

  2. What is a bit vector?

  3. With a 16 bit bit vector we can store a total of ___ different pieces of information.

  4. Given that the ASCII code for ‘4’ is x34 what operation and bit mask should we use to convert the character into the number 4?

  5. Write the truth tables for AND, OR, XOR, and NAND.

  6. To store images we use _, where for each pixel on the screen it can be any combination of Red, Green, and Blue. We can represent all colors by different intensities, if we use 8 bits to specify each color intensity we can get _M different colors/combinations.

  7. If we have a bit vector 0011, how can we set bit 2 to 1?

  8. If we have a bit vector 0011 how can we check bit 3 value?