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 | |
|---|---|---|
| 1INPUT mark | ATurns an IPO input (a mark entered by the user) into an input statement that stores it in a variable | |
| 2PRINT result | BTurns an IPO output (the result shown to the user) into a print statement | |
| 3A process that calculates a value becomes an assignment using the arrow | CThe assignment is written backwards. The variable being assigned must be on the left of the arrow. | |
| 4A process that makes a decision becomes an IF selection | DIF mark >= 50 THEN result ← "Pass" ELSE result ← "Fail" END IF | |
| 5PRINT total total ← price * quantity INPUT price, quantity | Etotal ← price * quantity | |
| 6INPUT price price * 2 ← total PRINT total | FThe statements are in the wrong order. The output is printed before the inputs are read and the process is done. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
IPO to pseudocode — Turn each IPO input into an INPUT statement, each process into assignments or IF selection, and each output into a PRINT statement, in that order.INPUT priceINPUT price
INPUT qty
total ← price * qtyIF mark >= 50 THEN
PRINT "Pass"
ENDIFINPUT total
PRINT totalINPUT radius
area ← 3.14 * radius * radius
PRINT area