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 << 1 = 00001010 | A00010111 << 1 = 00101110 | |
| 211000011 << 1 = 10000110 | B10110001 << 1 = 01100010 | |
| 3Zeros come in on the right: after a left shift, the empty right-hand place is filled with 0. | CA logical left shift by one place: every bit moves one place left and a 0 fills the empty right end. | |
| 4Bits shifted off the left end are lost: the leftmost bit is dropped and cannot be recovered. | DThe empty place on the right was filled with 1. A logical left shift always fills it with 0, so the answer should be 01100110. | |
| 500000101 << 1 = 10000010 | EThis is a right shift result. In a left shift the bits move left and a 0 fills the right end, so the answer should be 00001010. | |
| 600110011 << 1 = 01100111 | FThe leftmost 1 falls off the end and is lost, and a 0 enters on the right. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
logical left shift — Moves every bit one place left. The leftmost bit falls off and is lost, and a 0 fills the empty place on the right. In 8 bits, 00000101 becomes 00001010.Logical left shift: 00000101 -> 0000101000000101 << 1 = 0000101011000011 << 1 = 1000011000000011 << 2 = 0000110010000001 << 1 = 00000010