Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 100000101 -> 11111010 | AAdd 1 to the flipped bits to finish the two's complement of -5 | |
| 211111010 + 1 = 11111011 | BThe student flipped the bits but forgot to add 1. The correct answer is 11111100 + 1 = 11111101. | |
| 3Check a two's complement answer by starting with -128 and adding the place values of the 1 bits | CFlip every bit of 5 in 8-bit binary (0 becomes 1, 1 becomes 0) | |
| 4To write -10: 10 is 00001010, flip to 11110101, then add 1 | D-128 + 64 + 32 + 16 + 8 + 2 + 1 = -5 | |
| 5-3: 00000011 flipped = 11111100, so -3 = 11111100 | EOnly the sign bit was changed. The correct method is to flip every bit of 00000101 to get 11111010, then add 1 to get 11111011. | |
| 6-5 = 10000101 (set the left bit to 1) | F11110110 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
flip the bits then add 1 — Write the positive value in 8-bit binary, flip every bit, then add 1. Example: 5 is 00000101, flip to 11111010, add 1 to get 11111011 (-5).Step 1: 5 in 8 bits is 00000101Step 2: flip 00000101 to get 11111010Step 3: 11111010 + 1 = 111110113 = 00000011, flip: 11111100
add 1: 11111100 + 1 = 1111110111111011 = -128 + 64 + 32 + 16 + 8 + 2 + 1