1Conceptual Review¶
What is a bit? How many bits are in a byte? Nibble?
Solution
A bit is the smallest unit of digital information and it can be either 0 of 1. There are 4 bits in a nibble and 8 bits in a byte.
What is overflow?
Solution
When the result of an arithmetic operation is outside the range of what is representable by given number of bits.
What is the range of numbers representable by -bit unsigned, sign-magnitude, one’s complement, two’s complement, and biased notation?
Solution
Unsigned:
Sign-Magnitude:
One’s complement:
Two’s complement:
Bias: biasbias
How many ways to represent zero do these representations have, -bit unsigned, sign-magnitude, one’s complement, two’s complement, and biased notation?
2Short Exercises¶
True/False: Depending on the context, the same sequence of bits may represent different things.
True/False: If you interpret a -bit Two’s complement number as an unsigned number, negative numbers would be smaller than positive numbers.
True/False: We can represent fractions and decimals in our given number representation formats (unsigned, biased, and Two’s Complement).
How many numbers can be represented by an unsigned, base-4, -digit number.
A. 1
B.
C.
D.
E.
How many bits are needed to represent decimal number 116 in binary?