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 | |
|---|---|---|
| 100101101 | AThe denary number 45 in 8-bit two's complement, with a leading 0 sign bit | |
| 201111111 | BThe binary is not padded to 8 bits. It should be 00001101, so that the leftmost sign bit is 0. | |
| 3Denary 5 is 101 in binary, so it is padded with leading zeros to fill 8 bits | C130 is above 127, so it cannot be stored in 8-bit two's complement. A leading 1 would mean a negative number (-126). | |
| 4Denary 100 is written as ordinary binary (64 + 32 + 4) with the leftmost sign bit set to 0 | D127, the largest positive number that 8 bits can store in two's complement | |
| 513 = 1101 | E01100100 | |
| 6130 = 10000010 | F00000101 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
positive two's complement — A denary number from 0 to 127 is written as ordinary binary, padded with zeros to 8 bits so the leftmost sign bit is 0. Numbers above 127 cannot be stored.65 in 8-bit two's complement: 01000001127 in 8-bit two's complement = 0111111113 = 8 + 4 + 1, so 8 bits are 00001101Pad 1101 to 8 bits: 00001101IF number > 127 THEN
OUTPUT "Too big for 8 bits"
ENDIF