Set the bits so the 8-bit register holds 0xA7. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xA7
N =
2.Easy
Convert the binary number 1111 1110₂ to decimal. Find N.
1111 1110₂
N =
3.Medium
Set the bits so they store −30 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −308 bit
U =
4.Medium
Set the bits so they store −23 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −238 bit
U =
5.Hard
Set the bits to the 8-bit result of 1011 1110 AND 0001 0101. What is the result's value R in decimal?
1011 1110AND0001 0101
R =
6.Hard
Set the bits to the 8-bit result of 0101 1101 >> 2. What is the result's value R in decimal?
0101 1101>> 2
R =
Answer key
- 1. N = 167
- 2. N = 254
- 3. U = 226
- 4. U = 233
- 5. R = 20
- 6. R = 23
Full step-by-step solutions: practise this topic on examproblems.com.