14 lines
630 B
Plaintext
14 lines
630 B
Plaintext
1. Convert the following binary number to decimal. please show the conversion step.
|
|
For example: 0b1101 = 1 + 4 + 8 = 13
|
|
a. 0b1001
|
|
0b1001 = 8 + 1 = 9
|
|
b. 0b11000100
|
|
0b11000100 = 128 + 64 + 4 = 196
|
|
c. 0b100101
|
|
0b100101 = 32 + 4 + 1 = 37
|
|
d. 0b111010
|
|
0b111010 = 32 + 16 + 8 + 2 = 58
|
|
e. 0b1011
|
|
0b1011 = 8 + 2 + 1 = 11
|
|
2. How many possible integers can an unsigned 5 bits binary represent? What is the largest decimal number? How about 8 bits binary? n bits binary?
|
|
A 5 bit number can represent 32 unique numbers. The largest decimal number is 31. 8 bits can represent 256 unique numbers. n bits can represent 2^n unique numbers. |