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 Age | AWHILE Count < 5 DO | |
| 2Total ← Total + Mark | BDraw a rectangular process box containing this assignment | |
| 3An IF condition becomes a decision diamond with a Yes branch and a No branch | CDraw a parallelogram containing INPUT Age | |
| 4In a WHILE loop the decision diamond comes before the loop body, so the body may never run | DOUTPUT must be drawn as a parallelogram, not a process box (rectangle). | |
| 5A rectangle drawn for OUTPUT Total | EIF Score >= 50 THEN | |
| 6REPEAT loop with the diamond drawn before the body | FIn a REPEAT ... UNTIL loop the diamond must come after the body, because the body always runs at least once. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Pseudocode to flowchart — Each pseudocode statement becomes one flowchart symbol: assignment is a process box, INPUT/OUTPUT a parallelogram, and IF or loop conditions a decision diamond.Total ← 0 // process boxOUTPUT Total // parallelogramIF Score >= 50 THEN // diamond
OUTPUT "Pass"
ENDIFWHILE Count < 5 DO // test before body
Count ← Count + 1
ENDWHILEFOR Count ← 1 TO 5
OUTPUT Count
NEXT Count // flowchart: Count ← Count + 1