Given w, which is the width of the binary representation, and the type of repres
ID: 3734073 • Letter: G
Question
Given w, which is the width of the binary representation, and the type of representation (signed or unsigned), determine how many values can be represented in the given width, as well as the minimum and maximum values that can be represented in the given width. You should write a number, not an expression using w! Assume that the unsigned type means B2U and the signed type means B2T.
w (number of bits)
Type
Number of Values
Minimum Value
Maximum Value
16
signed
16
unsigned
32
signed
32
unsigned
64
signed
64
unsigned
w (number of bits)
Type
Number of Values
Minimum Value
Maximum Value
16
signed
16
unsigned
32
signed
32
unsigned
64
signed
64
unsigned
Explanation / Answer
w (number of bits)
Type
Number of Values
Minimum Value
Maximum Value
16
signed
65356
-32768
32767
16
unsigned
65536
0
65535
32
signed
4294967296
-2147483648
2147483647
32
unsigned
4294967296
0
4294967295
64
signed
1.8446744e+19
-9.223372e+18
9.223372e+18
64
unsigned
1.8446744e+19
0
1.8446744e+19
w (number of bits)
Type
Number of Values
Minimum Value
Maximum Value
16
signed
65356
-32768
32767
16
unsigned
65536
0
65535
32
signed
4294967296
-2147483648
2147483647
32
unsigned
4294967296
0
4294967295
64
signed
1.8446744e+19
-9.223372e+18
9.223372e+18
64
unsigned
1.8446744e+19
0
1.8446744e+19
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.