CMSC 201 -- Quiz 3

Quiz 3

  1. What is the difference between a logical shift and arithmetic shift?
  2. Using only bitwise operators and starting with int a = 0; and int b = 0xF, write code to store 0xF0F0F0F0 in a.
  3. Interpret 0xC3D35000 as an IEEE 32 bit floating point number