Set the bits so the 8-bit register holds 0xD6. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xD6
N =
2.Easy
Convert the hexadecimal number 0xB5D to decimal. Find N.
0xB5DA = 10 … F = 15
N =
3.Medium
The 8-bit pattern 1001 0001 stores a signed integer in two's complement. What is its value N in decimal?
1001 00018 bit
N =
4.Medium
Set the bits so they store −56 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −568 bit
U =
5.Hard
Set the bits to the 8-bit result of 0010 0011 << 2. What is the result's value R in decimal?
0010 0011<< 2
R =
6.Hard
Set the bits to the 8-bit result of 1101 1110 OR 0001 1001. What is the result's value R in decimal?
1101 1110OR0001 1001
R =
Answer key
- 1. N = 214
- 2. N = 2909
- 3. N = −111
- 4. U = 200
- 5. R = 140
- 6. R = 223
Full step-by-step solutions: practise this topic on examproblems.com.