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 | |
|---|---|---|
| 101111111 | A0 to 255 | |
| 210000000 | B-128 to 127 | |
| 3An 8-bit two's complement integer can store every whole number from -128 up to 127 | CThe largest positive 8-bit two's complement number, which is 127 | |
| 4Unsigned 8-bit binary, with no sign bit, stores a different range from two's complement | DThe smallest 8-bit two's complement number, which is -128 | |
| 5Range of 8-bit two's complement: -127 to 128 | EThe ends are the wrong way round. The range is -128 to 127, because the sign bit is worth -128 and the largest positive is 01111111 = 127. | |
| 611111111 = 255 in 8-bit two's complement | F255 is the unsigned value. In two's complement the sign bit is worth -128, so 11111111 = -128 + 127 = -1. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
-128 to 127 — The range of an 8-bit two's complement integer: 10000000 is -128, 11111111 is -1 and 01111111 is 127. Unsigned 8-bit binary gives 0 to 255 instead.01111111 in two's complement = 12710000000 in two's complement = -12811111111 in two's complement = -1Unsigned 8-bit range: 0 to 255Largest positive: 01111111 = 127