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 | |
|---|---|---|
| 111111111 + 00000001 = 1 00000000 | AA carry out of the leftmost column, so overflow has happened | |
| 211001000 + 01100100 = 1 00101100 | BIF sum > 255 THEN overflow | |
| 3The 8-bit register keeps only 8 bits, so the carried 9th bit is lost and the stored result is wrong | CThe answer 0 looks fine, but 255 + 1 = 256 needs 9 bits. The carry out of the leftmost column is lost, so this is an overflow error. | |
| 4Overflow happens when the sum of two 8-bit numbers is greater than 255 | Dstored result = 00101100 (should be 300) | |
| 511111111 + 00000001 = 00000000, no overflow | EAn 8-bit register can only hold values up to 255, so 300 cannot be stored and an overflow occurs. | |
| 6An 8-bit register can store 100 + 200 = 300 | FThe true answer needs 9 bits, because 255 + 1 = 256 is too big for 8 bits |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
overflow — An error when an 8-bit addition gives a result over 255. It needs a 9th bit, so the carry out of the leftmost column is lost and the stored result is wrong.11111111 + 00000001 = 100000000255 + 1 = 256, which needs 9 bitsResult over 255 in 8 bits: overflow errorOverflow: carry out of the leftmost column11111111 + 00000010 = 100000001
Stored in 8 bits: 00000001