Set the bits so the 8-bit register holds 0x87. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0x87
N =
2.Easy
Convert the hexadecimal number 0xE1B to decimal. Find N.
0xE1BA = 10 … F = 15
N =
3.Medium
Write −28 as an 8-bit two's complement pattern. Read the pattern as an unsigned binary number: what is its value U in decimal?
N = −288 bit
U =
4.Medium
The 8-bit pattern 1110 0001 stores a signed integer in two's complement. What is its value N in decimal?
1110 00018 bit
N =
5.Hard
What is the most negative integer N that can be stored in 32-bit two's complement?
32 bit
N =
6.Hard
Set the bits to the 8-bit result of 0011 0000 << 3. What is the result's value R in decimal?
0011 0000<< 3
R =
Answer key
- 1. N = 135
- 2. N = 3611
- 3. U = 228
- 4. N = −31
- 5. N = −2.147 × 10⁹
- 6. R = 128
Full step-by-step solutions: practise this topic on examproblems.com.