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 name | APseudocode should use plain language, not the exact syntax of one language | |
| 2OUTPUT total | BDisplaying a result to the user | |
| 3A structure describing a decision with two possible outcomes | CCollecting data from the user | |
| 4A structure describing steps that repeat while a condition is true | DIF age > 18 THEN ... ELSE ... | |
| 5The pseudocode was written using exact Python syntax and indentation rules | EIF statements need at least a THEN branch to describe what happens | |
| 6An IF statement was written with no THEN and no ELSE branch at all | FWHILE count < 10 DO ... |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Pseudocode — A plain-language, code-like way of planning a solution's logic without following the exact syntax of a real programming languageINPUT nameOUTPUT totalIF age > 18 THENWHILE count < 10 DOIF valid THEN OUTPUT yes ELSE OUTPUT no