Lecture Questions
-
2 ^ 16 = ________.
-
G = ________.
-
K = ________.
-
T = ________.
-
M = ________.
-
With 4 bits we can get ________ different combinations.
-
A 32 bit address will give us ________ addresses.
Floating Point
-
With n bits, the range of an Unsigned Magnitude binary number is ________ to ________.
-
With n bits, the range of a Twos Complement binary number is ________ to ________.
-
We encode floating point numbers using either __ bits, __ bits, or ___ bits. Each encoded number has 3 parts: ______ , _________ , _________.
-
For the 32 bit version:
-
The _____ takes 1 bit.
-
The exponent takes __ bits.
-
The mantissa takes ___ bits.
-
Convert x41BD0000 from 32 bit floating point to decimal
Masks, Vectors, and Bitwise Operations
-
What is a bit mask?
-
What is a bit vector?
-
With a 16 bit bit vector we can store a total of ___ different pieces of information.
-
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?
-
Write the truth tables for
AND
,OR
,XOR
, andNAND
. -
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.
-
If we have a bit vector 0011, how can we set bit 2 to 1?
-
If we have a bit vector 0011 how can we check bit 3 value?