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 | |
|---|---|---|
| 100101100 >> 1 = 00010110 | AThe right-most 1 is lost off the end, and a 0 is added at the left. | |
| 200010111 >> 1 = 00001011 | BA logical right shift of one place on an 8-bit value: every bit moves right and a 0 enters on the left. | |
| 3Zeros come in on the left: shifting 10000000 right by one place gives a leading 0 at the left | CThe bit that falls off the right end is lost and not stored or kept anywhere. | |
| 4Shifting a positive 8-bit integer right by one place halves its value, rounded down | D10000000 >> 1 = 01000000 | |
| 500110100 >> 1 = 10011010 | EA 1 was put in the left end. A logical right shift always fills the empty left end with 0, so the answer should be 00011010. | |
| 600001010 >> 1 = 00000101 and the 0 on the right is stored in a spare box | F00001001 >> 1 = 00000100 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
logical right shift — Moves every bit one place right. The bit at the right end is lost and a 0 fills the empty left end. For a positive integer this halves the value (rounded down).Before: 00001100
Logical right shift by 1 place
After: 00000110Before: 10110000
Logical right shift by 1 place
After: 00011000Before: 00001101
After: 00000110
Bit lost off the right end: 100001100 is 12 in denary
After one right shift: 00000110
New denary value: 6A logical right shift halves a positive
integer, rounding down.