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 | |
|---|---|---|
| 1TotalToPay ← NumberOfHours * HourlyRate | AThe arrow is the wrong way round. The variable that receives the result must be on the left and the expression on the right: TotalToPay ← NumberOfHours * HourlyRate. | |
| 2Counter ← Counter + 1 | BTakes the current value of Counter, adds 1, then stores the new value back in Counter, replacing the old one | |
| 3Copying the value of one variable into another variable | CBackupScore ← Score | |
| 4The expression on the right is calculated before anything is stored in the variable on the left | DThe expression is on the left of the arrow, so the result has nowhere to be stored. It should be Counter ← Counter + 1. | |
| 5NumberOfHours * HourlyRate ← TotalToPay | EWorks out NumberOfHours multiplied by HourlyRate first, then stores the result in TotalToPay | |
| 6Counter + 1 ← Counter | FArea ← Length * Width |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
TotalToPay ← NumberOfHours * HourlyRate — The expression on the right is worked out first, then its result is stored in the variable on the left, replacing any old value that variable held.TotalToPay ← NumberOfHours * HourlyRateCounter ← 5
Counter ← Counter + 1
OUTPUT CounterLives ← 3
Lives ← Lives - 1Score ← 10
Backup ← ScoreTotal ← Price * Quantity