Set the bits so the 8-bit register holds 0x42. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0x42
N =
2.Easy
Convert the binary number 1000 0010₂ to decimal. Find N.
1000 0010₂
N =
3.Medium
The 8-bit pattern 1010 0110 stores a signed integer in two's complement. What is its value N in decimal?
1010 01108 bit
N =
4.Medium
Set the bits so they store −62 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −628 bit
U =
5.Hard
Set the bits to the 8-bit result of 1001 0010 XOR 0110 1100. What is the result's value R in decimal?
1001 0010XOR0110 1100
R =
6.Hard
An uncompressed image is 512 × 512 pixels with 32 bits per pixel. How much memory M does it take, in KiB (1 KiB = 1024 bytes)?
512 × 512 px32 bit/px1 KiB = 1024 B
M = KiB
Answer key
- 1. N = 66
- 2. N = 130
- 3. N = −90
- 4. U = 194
- 5. R = 254
- 6. M = 1024 KiB
Full step-by-step solutions: practise this topic on examproblems.com.