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 | A01000001 | |
| 20011 | BThe number 5 written as an 8-bit binary number, with five leading zeros added to fill all 8 bits | |
| 3Leading zeros do not change the value of a binary number, so these two numbers are both 5 | CThe zeros were added on the right instead of the left. That changes the value to 160. Padding must go on the left: 00000101. | |
| 4Fixed-length codes make every character the same size, so 'A' (65) is stored in 8 bits with a leading zero | D101 = 00000101 | |
| 55 in 8 bits = 10100000 | EThis has 6 bits, not 4, and the zeros are on the right. Padding 110 to 4 bits should give 0110. | |
| 66 in 4 bits = 110000 | FThe number 3 written in 4 bits, with two leading zeros padding the binary number 11 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
leading zeros — Extra 0s added at the left of a binary number to fill a fixed number of bits. They do not change its value: 101 and 00000101 both mean 5.101 padded to 8 bits = 0000010100000101 and 101 both have the value 5Pad 11 to 4 bits: 0011Leading zeros do not change the valueEach character is padded to 8 bits.
3 characters = 3 x 8 = 24 bits